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 break comes right before the next content. I also tried adding a page break to my HTML with: <br style="page-break-after:always">, but that doesn't even display a page break in my docx file. Is this is a bug? Or am I missing something?
Thanks in advance!