We use FOP for automatically creating PDF output of legal contracts. In some cases, the final line of text on a page is missing entirely - obviously a very serious problem. I originally thought this might be Bug #13464, but that seems to be about some parts of a single word being lost across pages, which isn't the same thing. I'll attach a single-page example of this - it's been reduced from a large (~50 page) document, with some changes to anonymise confidential information. Clause 7.2 (b) (vi) is the last thing on this page - the contents (but not the label) of this list item is missing - that part of it that goes onto the next line (and hence next page) comes out correctly. This is not pdf-specific - using fop's area-tree output, that line of text is missing in the area tree xml. In documents structured like this one, I'd guess this happens on about 1 in 100 pages. Any solutions to this problem would be very welcome.
Created attachment 8843 [details] One-page testcase for this bug.
The last line on a page will be silently dropped if there is something in there which increases the line height so that this item would no longer fit into the available space. This happens for example when adding an inline with a larger font or an image which is higher than the line hight. In your case it could probably be solved by moving the font-size properties from the inlines to the enclosing block. The issue is difficult to fix for the same reasons the issue with dropping text snippets can't be fixed easily.
Fixed in FOP 0.94 and probably earlier versions
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed