Bug 49910 - Headers clipped; footers missing
Summary: Headers clipped; footers missing
Status: RESOLVED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: pdf (show other bugs)
Version: 1.0
Hardware: PC All
: P3 regression
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
: 52610 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-10 06:43 UTC by nick.heyworth
Modified: 2012-04-07 07:20 UTC (History)
1 user (show)



Attachments
FO file used to generate the two PDF files (19.21 KB, application/octet-stream)
2010-09-10 06:43 UTC, nick.heyworth
Details
PDF generated with FOP 0.95 (11.89 KB, application/pdf)
2010-09-10 06:44 UTC, nick.heyworth
Details
PDF generated with FOP 1.0 (12.37 KB, application/pdf)
2010-09-10 06:44 UTC, nick.heyworth
Details
A simpler demonstration of the bug (1.97 KB, text/plain)
2010-09-27 06:30 UTC, Peter Hancock
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nick.heyworth 2010-09-10 06:43:11 UTC
Created attachment 26012 [details]
FO file used to generate the two PDF files

I have an FO file that I use to generate a PDF file. The file contains headers and footers. With FOP 0.95 the file looked entirely correct; with FOP 1.0 the headers are clipped and the footers are not displayed at all.

The area trees generated by 0.95 and 1.0 are the same as far as the areas are concerned, so it looks like a rendering bug to me.
Comment 1 nick.heyworth 2010-09-10 06:44:03 UTC
Created attachment 26013 [details]
PDF generated with FOP 0.95
Comment 2 nick.heyworth 2010-09-10 06:44:33 UTC
Created attachment 26014 [details]
PDF generated with FOP 1.0
Comment 3 nick.heyworth 2010-09-27 04:19:27 UTC
27-SEP-2010: Is anyone reading this? I was hoping for some sort of reply - at least a conformation that it's a FOP error and not something I'm doing wrong.
Comment 4 Peter Hancock 2010-09-27 06:30:18 UTC
Created attachment 26080 [details]
A simpler demonstration of the bug
Comment 5 Peter Hancock 2010-09-27 06:33:58 UTC
This does seem to be a bug.  The text in the static regions does seem to be layed out properly- dragging over the text in my PDF reader highlights the invisible text.  Reducing the left margin of the page master seems to proportionally decrease the degree of cropping.
Comment 6 Peter Hancock 2010-09-27 06:39:27 UTC
This bug does not emerge when rendering AFP- so probably a bug somewhere in the PDF renderer.
Comment 7 Vincent Hennebert 2010-09-27 07:15:22 UTC
The overflow property is specified on region-before or after. This results into the definition of a clipping rectangle in the PDF output, whose coordinates are wrong. All the renderers that honour the overflow property are affected. I could not trace the exact origin of the problem.

A work-around is to not specify overflow on the side regions.
Comment 8 Vincent Hennebert 2011-03-14 16:47:41 UTC
I've committed a partial fix:
http://svn.apache.org/viewvc?rev=1081554&view=rev
It works when the reference-orientation property is set to 0 or 180 on side-regions.
Comment 9 Vincent Hennebert 2012-02-07 07:41:24 UTC
*** Bug 52610 has been marked as a duplicate of this bug. ***
Comment 10 Glenn Adams 2012-04-07 01:44:05 UTC
resetting P2 open bugs to P3 pending further review
Comment 11 Glenn Adams 2012-04-07 07:20:15 UTC
a fix was implemented at http://svn.apache.org/viewvc?rev=1081554&view=rev (see comment 8)

if a problem still exists, then file a new bug with a reference to this bug