On Fri, 29 Apr 2011, Dmitry Kochelaev wrote:
XPath inside document.xml is /document/body/sectPr/pgSz. Inside XWPFDocument
class this can be change with following call:
ctDocument.getBody().getSectPr().getPgSz().setOrient(STPageOrientation.LANDSCAPE);

I think of sending patch to community

If you could, that'd be great. Open a new bug on bugzilla, with [PATCH] in the title, and upload the patch. I guess this would want to be a new method on XWPFDocument to toggle between landscape and portrait. If you can, include a getter too!

Cheers
Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to