I just started to upgrade to 3.2.2 and I noticed that we had a patch that we had to bring back, so might as well bring this to your attention. With the code as is I am getting the following exception:
Caused by: org.docx4j.openpackaging.exceptions.Docx4JException: Exception executing transformer: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 40; Content is not allowed in prolog.
at org.docx4j.convert.out.fo.renderers.FORendererApacheFOP.render(FORendererApacheFOP.java:215)
at org.docx4j.convert.out.fo.renderers.FORendererApacheFOP.render(FORendererApacheFOP.java:158)
at org.docx4j.convert.out.fo.AbstractFOExporter.postprocess(AbstractFOExporter.java:140)
at org.docx4j.convert.out.fo.AbstractFOExporter.postprocess(AbstractFOExporter.java:1)
at org.docx4j.convert.out.common.AbstractExporter.export(AbstractExporter.java:82)
... 5 more
Caused by: javax.xml.transform.TransformerException: org.xml.sax.SAXParseException; ...