I tried to use:
context.document.body.getOOXML for word online, but does not bring the correct results:
<w:sectPr>
<w:pgSz w:w="15840" w:h="12240" w:orient="landscape"/>
</w:sectPr>
Even If I update the size in Word online this feature does not works. Any reliable idea how to get the page size?