We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Wrong Paper Sizes


In the attached Helloworld.docx file, it has 2 paper sizes seperated by a page break. 1st page is a letter size and the 2nd page is a tabloid. When I execute the following code the 1st Papersize comes correctly but the 2nd paper comes as a Ledger type.

PageSetup setup = section.getPageSetup();


This is wrong. Please help.



Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. LEDGER and TABLOID has the same size 11” x 17”. I think information provided in the following forum thread could be useful for you.

Best regards.

Thank you very much. That solved my problem.