DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16999>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16999

fo:retrieve-marker takes marker from wrong page

           Summary: fo:retrieve-marker takes marker from wrong page
           Product: Fop
           Version: 0.20.4
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: pdf renderer
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I try to generate an online glossary to a pdf version via fop.
This glossary has a lot of topics with headlines and desccriptions.
To avoid a split between headline and description I use a blind table to use the 
keep-together option. This causes a bad FO-code but works. In the table row of 
the headline i also place a fo:marker with the text of the headline.
This is needed to get the first and the last topic for the xsl-region-before of 
each page.
This code works but not exactly enough. It seems that the estimation if a marker 
will be on a page and the pdf-layout are using different algorithms. May be that 
the marker estimation does not consider that a block including a marker can be 
moved complitely to the next or a previous page because of a framing table.

Here are the code snippets. Feel free to contact me for a complete fo-file:

<fo:page-sequence master-reference="simple" initial-page-number="1">
<fo:static-content flow-name="xsl-region-before">
<fo:block text-align="end" font-size="10pt" 
    font-family="Helvetica" line-height="14pt">
<fo:retrieve-marker retrieve-class-name="t" 
    retrieve-boundary="page" 
    retrieve-position="first-ending-within-page"/> -
<fo:retrieve-marker retrieve-class-name="t"
    retrieve-boundary="page"
    retrieve-position="last-starting-within-page"/>
</fo:block>
</fo:static-content> 

The marker code is like this:

<fo:table table-layout="fixed" width="100%">
<fo:table-column column-width="proportional-column-width(1)"/>
<fo:table-body><fo:table-row keep-with-next="always"><fo:table-cell>
<fo:block id = "aae"
    font-size="12pt"
    font-weight="bold"
    space-before.optimum="12pt"
    space-after.optimum="6pt">AAE</fo:block>
<fo:block><fo:marker marker-class-name="t">AAE</fo:marker></fo:block>
</fo:table-cell></fo:table-row>
... similar for the descripton of the topic

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to