I am using docx4j - 11.5.2
Java - 17
I am setting the my apache FOP Mime to Intermediate Format
- Code: Select all
foSettings.setApacheFopMime(MimeConstants.MIME_FOP_IF);
I am getting error while converting to FO
- Code: Select all
Docx4J.toFO(foSettings, os, Docx4J.FLAG_NONE);
Error I am getting
- Code: Select all
Caused by: org.docx4j.openpackaging.exceptions.Docx4JException: Exception writing Document to OutputStream: org.apache.fop.fo.ValidationException: "fo:flow" is missing child elements. Required content model: marker* (%block;)+ (See position 1:1057)
Caused by: javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: "fo:flow" is missing child elements. Required content model: marker* (%block;)+ (See position 1:1057)
Caused by: org.apache.fop.fo.ValidationException: "fo:flow" is missing child elements. Required content model: marker* (%block;)+ (See position 1:1057)
I will attach a simple document that is not working for me.