I use Plutext-Enterprise-3.2.0.1.jar to merge m3_1.docx and m3_2.docx,
result has repeat ShapeID and can not edit in MS office word except first OLEObject.
It is currently Sat Feb 22, 2025 8:28 am
String regex = ".*(arial|times).*";
PhysicalFonts.setRegex(regex);
Mapper fontMapper = new IdentityPlusMapper();
template.setFontMapper(fontMapper);
ByteArrayOutputStream bos = new ByteArrayOutputStream();
Docx4J.toPDF(template, bos);
return bos;
wmlPackage.filter(filterSettings);
org.docx4j.wml.Document wmlDocumentEl = wmlPackage.getMainDocumentPart().getJaxbElement();
Total posts 10142 • Total topics 2852 • Total members 2083