Apache POI docx - how to set page size?

Does anyone know how to resize a page (from letter to A4) for XWPFDocument (docx)?

I cannot find PrintSetup as it is done in XSSFDocument (xlsx).

Thanks for any help.

+7
java docx apache-poi
source share
1 answer

You will find a similar question, for example, here. You will find sample code plus required page sizes.

How to set page orientation for a Word document?

Hope this helps!

+2
source share

All Articles