You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Stefan Pantos <st...@gmail.com> on 2010/12/30 14:14:05 UTC

XWPF page size and sections

Hi,
   I'm certain this must have been covered somewhere, i just don't seem to be able to find the answer. I'm using XWPF to create a DOCX file and want to be able to set the page size for a section/whole document. The aim it so create a FOP handler which will create passable DOCX output.

Also does anyone know where I can find some documentation on the org.openxmlformats.schemas.wordprocessingml.x2006.main.* classes? I seem to be failing to find that too. The source for it would be good too. 

Thanks,
Stefan

Re: XWPF page size and sections

Posted by Nick Burch <ni...@alfresco.com>.
On Thu, 30 Dec 2010, Stefan Pantos wrote:
>   I'm certain this must have been covered somewhere, i just don't seem 
> to be able to find the answer. I'm using XWPF to create a DOCX file and 
> want to be able to set the page size for a section/whole document. The 
> aim it so create a FOP handler which will create passable DOCX output.

Your best bet is to create two files that are identical except for page 
size. Then, unzip them (.docx is a zip of xml), and diff to spot the part 
that holds the page size

> Also does anyone know where I can find some documentation on the 
> org.openxmlformats.schemas.wordprocessingml.x2006.main.* classes? I seem 
> to be failing to find that too. The source for it would be good too.

The classes are compiled from the microsoft supplied xsds. You'll probably 
want to just read the .docx spec, as that describes all the elements

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org