Page 1 of 1

Extra Paragraph page break

PostPosted: Sat Oct 04, 2014 10:13 am
by todd
I have a docx4j document created from a Template and using the Plutext merge process. For some reason I get an extra Paragraph added through the Merge process that is causing a page break resulting in an extra page in my document.
This paragraph definition is different from all the other paragraphs in my document viewing in Open XML SDK.

<w:p xmlns:w="">
<w:sectPr w:rsidRPr="009E0F64" w:rsidR="006312C9" w:rsidSect="00A85378">
<w:headerReference w:type="default" r:id="rId8" xmlns:r="" />
<w:headerReference w:type="first" r:id="rId9" xmlns:r="" />
<w:pgSz w:w="12240" w:h="15840" />
<w:pgMar w:top="720" w:right="1080" w:bottom="720" w:left="1080" w:header="288" w:footer="720" w:gutter="0" />
<w:cols w:space="720" />
<w:titlePg />
<w:docGrid w:linePitch="360" />

If I delete the paragraph, the page does away and all is good.
Any ideas?
Jason if you need the code and document I will have to send separate.


Re: Extra Paragraph page break

PostPosted: Sat Oct 04, 2014 12:15 pm
by jason
Hi Todd

That p contains a sectPr; the question is where it is coming from. That'll depend on your input documents or code/config.

Please provide your input docx and code to reproduce to, and I'll take a look.

cheers .. Jason