
It is currently Sat Apr 26, 2025 8:25 pm
RelationshipsPart rp = wordMLPackage.getMainDocumentPart().getRelationshipsPart();
org.docx4j.relationships.Relationship hdrRelationship = rp.getRelationshipByType(Namespaces.HEADER);
HeaderPart hdrPart = (HeaderPart)rp.getPart(hdrRelationship);
HeaderPart newHdrPart = new HeaderPart();
newHdrPart.setContents(XmlUtils.deepCopy(hdrPart.getContents()));
wordMLPackage.getMainDocumentPart().addTargetPart(newHdrPart, RelationshipsPart.AddPartBehaviour.RENAME_IF_NAME_EXISTS);
content = newHdrPart.getContent();
mergeMSWordDocContentViaDocX4J(wordMLPackage, content, replacementMap);
For @bpda,
<block bap="0 0 0 0" bpd="0" ipd="468000" ipda="468000"/>
For input string: "": java.lang.NumberFormatException: For input ...
Total posts 10160 • Total topics 2859 • Total members 2089