When the PDF code is called, I get the stack trace. I have my JVM set up as follows:
- Code: Select all
vmarg.Xmx=-Xmx1024m
vmarg.Xms=-Xms512m
vmarg.Xmca=-Xmca512k
Any ideas? Or do I just need to ramp up the ...
It is currently Thu Apr 03, 2025 5:55 pm
vmarg.Xmx=-Xmx1024m
vmarg.Xms=-Xms512m
vmarg.Xmca=-Xmca512k
public static void main(String[] args) throws Exception {
WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.createPackage();
MainDocumentPart mdp = wordMLPackage.getMainDocumentPart();
StyleDefinitionsPart sdp = new StyleDefinitionsPart();
sdp.unmarshalDefaultStyles();
mdp.addTargetPart(sdp);
Styles styles = sdp.getJaxbElement();
java.util.List<Object> nodeList = mdp.getJAXBNodesViaXPath("//styles/style",styles,false);
for (int i = 0; i < nodeList.size(); i++) {
Style style = (Style) nodeList.get(i);
String styleId = style.getStyleId();
System.out.println(styleId);
}
}
org.docx4j.openpackaging.exceptions.Docx4JException: FOP issues
at org.docx4j.convert.out.pdf.viaXSLFO.Conversion.output(Conversion.java:374)
Caused by: javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: For "fo:root", "fo:layout-master-set" must be declared before "fo:page-sequence"! (See position 1:168)
Total posts 10157 • Total topics 2857 • Total members 2087