I've converted HTML to docx which works great, even converting to PDF. When I add a page break and output it as DOCX it works great with the following code:
Br breakObj = new Br();
breakObj.setType(STBrType.PAGE);
P paragraph = objectFactory.createP();
paragraph.getContent().add(breakObj);
wordMLPackage.getMainDocumentPart().getContent().add(paragraph);
But when I try to output it as PDF with the example:
https://github.com/plutext/docx4j/blob/ ... utPDF.java, the page break is gone and all the content before the page ...