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 Sun Apr 26, 2026 3:13 pm
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 10223 • Total topics 2881 • Total members 2105