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(); setup.getPaperSize();
This is wrong. Please help.