Bug 44317 - RTF Static Content Error In Every Region
Summary: RTF Static Content Error In Every Region
Status: CLOSED INVALID
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: rtf (show other bugs)
Version: 0.94
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-28 17:29 UTC by Peter Ryan
Modified: 2012-04-01 13:54 UTC (History)
0 users



Attachments
This fo demonstrates the problem (1.81 KB, text/plain)
2008-01-28 17:30 UTC, Peter Ryan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Ryan 2008-01-28 17:29:30 UTC
When generating an RTF FOP renders a static content element in every
corresponding region even when this is not reflected in the fo object. 

For example if page 1 of a document which uses a simple-page-master that has a
region-before set with a non-zero extent, and has a static content header
defined in the region-before, and page 2 uses a different simple-page-master
where the extent of the region-before is set to 0, the header will still be
rendered in the 2nd page in a .rtf document; in a .pdf the header is correctly
not shown. 

The .fo document reflects that the header is not in the 2nd page, but it is
still rendered anyway.

Please see the attached example. Again the generating an RTF is displaying
incorrect behavior and the PDF is the expected output.
Comment 1 Peter Ryan 2008-01-28 17:30:21 UTC
Created attachment 21439 [details]
This fo demonstrates the problem
Comment 2 Jeremias Maerki 2008-01-28 23:49:48 UTC
I've done some experiments, even manually modified the RTF file. I don't get MS
Word Viewer to reset the top margin to 0 after it has once been set to a
non-zero value. If you move the last page-sequence in your demo file as the
first, you'll see that the first page is handled correctly with no margins. IMO,
this is a bug in Word. FOP has a lot of limitations concerning RTF output. Some
of them come from the incomplete implementation of the RTF output but even more
come from limitations of the RTF format itself or from the way the RTF is
interpreted by word processors.
Comment 3 Glenn Adams 2012-04-01 13:54:44 UTC
batch transition to closed remaining pre-FOP1.0 resolved bugs