Does anyone know how to resize a page (from letter to A4) for XWPFDocument (docx)?
XWPFDocument
I cannot find PrintSetup as it is done in XSSFDocument (xlsx).
Thanks for any help.
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!