8

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.

robson
  • 1,623
  • 8
  • 28
  • 43
  • I'm stuck at this as well. Surprisingly, this is the only question I came across and it was asked just a week ago! – Swapnil Mar 26 '14 at 08:56
  • @Swapnil I have no solution yet :-) I left this for the moment, but I'll have to back to the problem. Please help if you find something. – robson Mar 26 '14 at 12:43

1 Answers1

3

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!

Community
  • 1
  • 1
Muhammad Hamed
  • 1,229
  • 9
  • 19