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 Tue Mar 10, 2026 4:21 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 10222 • Total topics 2880 • Total members 2105