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="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
<w:pPr>
<w:sectPr w:rsidRPr="009E0F64" w:rsidR="006312C9" w:rsidSect="00A85378">
<w:headerReference w:type="default" r:id="rId8" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" />
<w:headerReference w:type="first" r:id="rId9" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" />
<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" />
</w:sectPr>
</w:pPr>
</w:p>


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.

Thanks
Todd

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 support@plutext.com, and I'll take a look.

cheers .. Jason