You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Aneesh <ve...@yahoo.com> on 2008/06/24 01:15:49 UTC

page breaks in 2007 docx format

I want to determine the page breaks that occurs in a 2007 word documents. These
page breaks are not manually inserted. These are the breaks that word inserts on
it's own as it renders a document. Once I save such a document, I want to
inspect the generated .docx file. And see where the page breaks have been
inserted. Where in the .docx file can I find this information?
Thanks in advance for your help.
-Aneesh


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


Re: page breaks in 2007 docx format

Posted by Yury Batrakov <ba...@gmail.com>.
Have a look at http://openxmldeveloper.org/forums/thread/1667.aspx,
this appears like a stuff that you want.

On 6/24/08, Aneesh <ve...@yahoo.com> wrote:
> I want to determine the page breaks that occurs in a 2007 word documents. These
>  page breaks are not manually inserted. These are the breaks that word inserts on
>  it's own as it renders a document. Once I save such a document, I want to
>  inspect the generated .docx file. And see where the page breaks have been
>  inserted. Where in the .docx file can I find this information?
>  Thanks in advance for your help.
>  -Aneesh
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
>  For additional commands, e-mail: user-help@poi.apache.org
>
>

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


Re: page breaks in 2007 docx format

Posted by Nick Burch <ni...@torchbox.com>.
On Mon, 23 Jun 2008, Aneesh wrote:
> I want to determine the page breaks that occurs in a 2007 word
> documents. These page breaks are not manually inserted. These are the
> breaks that word inserts on it's own as it renders a document. Once I
> save such a document, I want to inspect the generated .docx file.

Generally your best bet with ooxml files is just to unzip them, and go
poking around in the xml.

Since you know where the page breaks occur in your text (from looking in
word), you just need to look for that in the xml, and see what changes
there. After that, you should be able to figure out the matching XmlBeans
for that, and then you can work with it in poi

Nick

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