Bug 24279 - Last line of text on a page is sometimes missing entirely
Summary: Last line of text on a page is sometimes missing entirely
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: 0.20.5
Hardware: Other All
: P3 critical
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-31 04:32 UTC by Michael Smith
Modified: 2012-04-01 07:00 UTC (History)
0 users



Attachments
One-page testcase for this bug. (13.97 KB, text/xml)
2003-10-31 04:33 UTC, Michael Smith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Smith 2003-10-31 04:32:23 UTC
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.
Comment 1 Michael Smith 2003-10-31 04:33:33 UTC
Created attachment 8843 [details]
One-page testcase for this bug.
Comment 2 J.Pietschmann 2003-10-31 20:28:04 UTC
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.
Comment 3 Pascal Sancho 2007-11-20 00:48:39 UTC
Fixed in FOP 0.94 and probably earlier versions
Comment 4 Glenn Adams 2012-04-01 07:00:30 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed