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

Free Support Forum - aspose.com

Set 2 Pages Per Sheet in Multiple Pages under Page Setup in Word Document using Java

Hi,

I am exploring Java Aspose API for Word to find support for Page Setup manipulation of word document.I found support for Mirror Margins and Book fold support has been recently added as stated on the forum https://forum.aspose.com/t/61047

But i could not find support for 2 pages per sheet in Aspose documentation. I would like to know if it is supported right now. If not, when will it be supported?

ThanksPraneeth


Hi Praneeth,


Thanks for your inquiry. Sure, you can instruct Aspose.Words to print two pages per sheet by using the following line of code:

PageSetup.MultiplePages = MultiplePagesType.TwoPagesPerSheet;

Secondly, we will be sure to improve this part of the documentation shortly.

Best regards,

Hi Awais,

I could not find any API like PageSetup.getMultiplePages in the documentation guide.

There is no enumeration like MultiplePagesType as well .

Can you help me in finding this?

Looking forward to your response!


Hi Praneeth,

Thanks for your inquiry. In Java you can use the code like below to print two pages per sheet:

Document doc = new Document("C:\\Temp\\input.docx");
doc.getFirstSection().getPageSetup().setMultiplePages(MultiplePagesType.TWO_PAGES_PER_SHEET);

This property is available in the latest version of Aspose.Words for Java and I would suggest you please upgrade to the latest version of Aspose.Words i.e. 13.5.0. You can download it from the following link:
http://www.aspose.com/community/files/72/java-components/aspose.words-for-java/default.aspx

Best regards,

Thank you

I found it in the latest version.