Вопрос

Does anybody know how to change page size (from letter to A4) for XWPFDocument (docx)?

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

Thanks for any help.

Это было полезно?

Решение

You'll find similar question like your's here ..You'll find a sample code plus the required page sizes

How to set page orientation for Word document?

I hope this could help!

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top