Java – Apache POI docx – how to set the page size?

Does anyone know how to change the page size (from letter to A4) for X wpfdocument (docx)?

I can't find any printsetup like that done in xssfdocument (xlsx)

Thanks for your help.

Solution

You will find problems similar to yours You will find a sample code plus the required page size

How to set page orientation for Word document?

I hope this can help you!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>