Hi Jason,
I have a need to set the "first page, all other pages" paper source properties in docx4j. I did some searching but didn't come up with much. Can you point me in the right direction on how to best do this?
Thanks,
Jeff
It is currently Fri Jun 12, 2026 10:23 am
News of docx4j wordMLPackage.getMainDocumentPart().getContent().addAll(
XHTMLImporter.convert( new File(inputfilepath + ".html"), null, wordMLPackage) );String str = "<w:p xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\" ><w:r><w:rPr><w:b /></w:rPr><w:u>Bold text </w:u></w:t></w:r></w:p>";
Total posts 10225 • Total topics 2883 • Total members 2107