Gerd W. wrote:
I just installed XXE

Hence you are using XXE v7.4 which includes FOP 2.1.




and tried to convert a composite DocBook5 document
to PDF, getting a NullPointerException related to the
LineBreakingAlgorithm (see the trace below).

Yes, it's:

---
CAUSE:
java.lang.NullPointerException
+---------------------------------------
| org.apache.fop.layoutmgr.inline.LineLayoutManager$LineBreakingAlgorithm.updateData2(LineLayoutManager.java:404) | org.apache.fop.layoutmgr.BreakingAlgorithm.calculateBreakPoints(BreakingAlgorithm.java:1451)
...
---





The document is valid and I can convert it to PDF using the Oxygen XML
Editor (an older version with an older version of FOP).

OK.




Do you have any idea/advice what I can do about this problem?

Yes, it's a FOP bug which was supposed to have been fixed in the version included with XXE. See for example: https://issues.apache.org/jira/browse/FOP-2511

This bug is almost certainly triggered by something specific to your DocBook5 document (because we routinely convert many large, complex DocBook5 documents to PDF without any problem.)

Please be kind enough to send me (privately: huss...@xmlmind.com) an archive (.zip, .tar.gz) containing all the files comprising your document. Of course, we'll not disclose your document, but this step is really needed to reproduce and fix the bug.



--> A possible workaround for this bug may be to pass to the conversion process parameter alignment=left (by default, it's alignment=justify). See http://docbook.sourceforge.net/release/xsl/current/doc/fo/alignment.html

This can be done very easily, once for all, from within XXE, as explained in this FAQ:

---
How do I customize the HTML, PDF, RTF, etc, generated using the "Convert Document" menu?
---
http://www.xmlmind.com/xmleditor/faq.html#custom_deliverables






I'm happy that the conversion to RTF works because this is the main
reason I've bought XXE.

Conversion to RTF is implemented by our XMLmind XSL-FO Converter, not by FOP.





--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to