FOP hyphenate-ladder-count and pre-hyphenated text

2015-05-06 Thread Marc Wiest
I have the requirements of 1. allow adding hyphenation exceptions at runtime (web container) 2. don't hyphenate more than two successive lines in a paragraph For 1. the only solution I found is to use a third-party library to add the actual soft-hyphens in the text, instead. This has other

RE: FOP hyphenate-ladder-count and pre-hyphenated text

2015-05-08 Thread Marc Wiest
Seems like some refactoring may be in order here, to streamline and better merge the two approaches. @Marc: Will you log a request for enhancement in JIRA for this, or shall I? @Andreas: thank you very much for that thorough feedback and insight into how it all works. It's the way I

FOP 1.1 RTF Output empty

2015-05-20 Thread Marc Wiest
I just tried to upgrade from FOP 1.0 to 1.1 and while most things work, one RTF document doesn't. It worked smoothly with the 1.0 version, but now produces an empty zero-byte OutputStream (ByteArrayOutputStream in my case). No errors in the log, nothing. The upgrade notes

RE: FOP 1.1 RTF Output empty

2015-05-21 Thread Marc Wiest
RTF support is a bit broken in 1.1, see also https://issues.apache.org/jira/browse/FOP-2182 You can workaround by not using a PageSequenceMaster, so use your simple page master's name first as master-reference on the fo:page-sequence element and it should process again without errors.