You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Timo Haberkern <th...@emedia-office.de> on 2005/10/21 13:47:56 UTC
Problems with overlapping regions
Hello FOP List,
i have a problem with overlapping regions. I have content of the
region-body that overlapps content from region-after.
You can see it on the screenshot:
http://www.emedia-office.de/fop/overlapping.png
i have defined my page as follows:
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="First-Page"
page-height="29.7cm" page-width="21cm">
<fo:region-body margin-left="2cm" margin-right="1.5cm"
margin-top="1cm" margin-bottom="2.5cm" />
<fo:region-start extent="2cm"/>
<fo:region-end extent="1.5cm"/>
<fo:region-after extent="2.0cm"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="Following-Pages"
page-height="29.7cm" page-width="21cm" margin-left="2cm"
margin-right="1.5cm">
<fo:region-body extent="24.7cm" margin-top="3.5cm"
margin-bottom="2.5cm" background-color="rgb(0,255,0)" />
<fo:region-before extent="3.5cm"/>
<fo:region-after extent="2.5cm"/>
</fo:simple-page-master>
<fo:page-sequence-master master-name="rotex-offer">
<fo:single-page-master-reference master-reference="First-Page"/>
<fo:repeatable-page-master-reference
master-reference="Following-Pages" />
</fo:page-sequence-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="rotex-offer">
<fo:static-content flow-name="xsl-region-after">
<fo:block space-before="1cm">
<fo:table width="100%" table-layout="fixed">
<fo:table-column />
<fo:table-body>
<fo:table-row>
<fo:table-cell border-top="1px #000000
solid" >
<fo:block text-align="right"
font-size="8pt" padding-top="0.1cm">
<fo:page-number/> /
<fo:page-number-citation ref-id="terminator"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</fo:static-content>
<!-- Body -->
<fo:flow flow-name="xsl-region-body">
<fo:block font-size="9pt" >
<xsl:apply-templates select="Offer_letter"/>
</fo:block>
<fo:block id="terminator" />
</fo:flow>
</fo:page-sequence>
</fo:root>
Any ideas whats going wrong?
best reagards
Timo
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Problems with overlapping regions
Posted by Timo Haberkern <th...@emedia-office.de>.
thank you Jeremias,
that solved the problem
Timo
Jeremias Maerki wrote:
>Ok, it looks like it has to do with the nested tables. If you exchange
>the template for "Offer_letter" with the version I post below the
>overlap disappears and the last paragraph is broken over to the next
>page. It's probably a bug with accumulating height on a page when nested
>tables are involved.
>
> <xsl:template match="Offer_letter">
> <fo:block>
> <fo:block>
> <xsl:apply-templates select="Address" />
> </fo:block>
> <fo:block padding-top="2cm">
> <xsl:apply-templates select="ReferenceTo" />
> </fo:block>
> <fo:block padding-top="1.5cm">
> <xsl:apply-templates select="Subject" />
> </fo:block>
> <fo:block padding-top="0.5cm" padding-bottom="2cm">
> <xsl:apply-templates select="ApplicationVersion" />
> </fo:block>
> <fo:block>
> <xsl:apply-templates select="AllPositions" />
> </fo:block>
> <fo:block padding-top="0.5cm">
> <xsl:apply-templates select="Amount" />
> </fo:block>
> <fo:block padding-top="1cm">
> <xsl:apply-templates select="AdditionalInformations" />
> </fo:block>
> </fo:block>
> </xsl:template>
>
>
>On 24.10.2005 10:21:08 Timo Haberkern wrote:
>
>
>>Hello again,
>>
>>thanks for reply. Sorry for the missing information. I'm using the
>>version 0.20.5 of FOP. You can find a complete package for testing under:
>>
>>http://www.emedia-office.de/fop/fop_forum.zip
>>
>>It contains the generated PDF with the problem on the last site, the xml data file and the XSL file i use to convert
>>
>>Please help :-)
>>
>>Timo
>>
>>Jeremias Maerki wrote:
>>
>>
>>
>>>The only weird thing I can see here is the extent property on the second
>>>region-body. This property doesn't apply to region-body. BTW, it would
>>>be much more fun to reproduce your problem if you posted a complete FO
>>>file and stated the FOP version you are using. :-)
>>>
>>>On 21.10.2005 13:47:56 Timo Haberkern wrote:
>>>
>>>
>>>
>>>
>>>>Hello FOP List,
>>>>
>>>>i have a problem with overlapping regions. I have content of the
>>>>region-body that overlapps content from region-after.
>>>>
>>>>You can see it on the screenshot:
>>>>
>>>>http://www.emedia-office.de/fop/overlapping.png
>>>>
>>>>i have defined my page as follows:
>>>>
>>>><fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
>>>> <fo:layout-master-set>
>>>> <fo:simple-page-master master-name="First-Page"
>>>>page-height="29.7cm" page-width="21cm">
>>>> <fo:region-body margin-left="2cm" margin-right="1.5cm"
>>>>margin-top="1cm" margin-bottom="2.5cm" />
>>>> <fo:region-start extent="2cm"/>
>>>> <fo:region-end extent="1.5cm"/>
>>>> <fo:region-after extent="2.0cm"/>
>>>> </fo:simple-page-master>
>>>> <fo:simple-page-master master-name="Following-Pages"
>>>>page-height="29.7cm" page-width="21cm" margin-left="2cm"
>>>>margin-right="1.5cm">
>>>> <fo:region-body extent="24.7cm" margin-top="3.5cm"
>>>>margin-bottom="2.5cm" background-color="rgb(0,255,0)" />
>>>> <fo:region-before extent="3.5cm"/>
>>>> <fo:region-after extent="2.5cm"/>
>>>> </fo:simple-page-master>
>>>> <fo:page-sequence-master master-name="rotex-offer">
>>>> <fo:single-page-master-reference master-reference="First-Page"/>
>>>> <fo:repeatable-page-master-reference
>>>>master-reference="Following-Pages" />
>>>> </fo:page-sequence-master>
>>>> </fo:layout-master-set>
>>>>
>>>> <fo:page-sequence master-reference="rotex-offer">
>>>> <fo:static-content flow-name="xsl-region-after">
>>>> <fo:block space-before="1cm">
>>>> <fo:table width="100%" table-layout="fixed">
>>>> <fo:table-column />
>>>> <fo:table-body>
>>>> <fo:table-row>
>>>> <fo:table-cell border-top="1px #000000
>>>>solid" >
>>>> <fo:block text-align="right"
>>>>font-size="8pt" padding-top="0.1cm">
>>>> <fo:page-number/> /
>>>><fo:page-number-citation ref-id="terminator"/>
>>>> </fo:block>
>>>> </fo:table-cell>
>>>> </fo:table-row>
>>>> </fo:table-body>
>>>> </fo:table>
>>>> </fo:block>
>>>> </fo:static-content>
>>>>
>>>> <!-- Body -->
>>>> <fo:flow flow-name="xsl-region-body">
>>>> <fo:block font-size="9pt" >
>>>> <xsl:apply-templates select="Offer_letter"/>
>>>> </fo:block>
>>>> <fo:block id="terminator" />
>>>> </fo:flow>
>>>> </fo:page-sequence>
>>>></fo:root>
>>>>
>>>>
>>>>Any ideas whats going wrong?
>>>>
>>>>best reagards
>>>>
>>>>Timo
>>>>
>>>>
>>>>
>>>>
>>>Jeremias Maerki
>>>
>>>
>
>
>Jeremias Maerki
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Problems with overlapping regions
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Ok, it looks like it has to do with the nested tables. If you exchange
the template for "Offer_letter" with the version I post below the
overlap disappears and the last paragraph is broken over to the next
page. It's probably a bug with accumulating height on a page when nested
tables are involved.
<xsl:template match="Offer_letter">
<fo:block>
<fo:block>
<xsl:apply-templates select="Address" />
</fo:block>
<fo:block padding-top="2cm">
<xsl:apply-templates select="ReferenceTo" />
</fo:block>
<fo:block padding-top="1.5cm">
<xsl:apply-templates select="Subject" />
</fo:block>
<fo:block padding-top="0.5cm" padding-bottom="2cm">
<xsl:apply-templates select="ApplicationVersion" />
</fo:block>
<fo:block>
<xsl:apply-templates select="AllPositions" />
</fo:block>
<fo:block padding-top="0.5cm">
<xsl:apply-templates select="Amount" />
</fo:block>
<fo:block padding-top="1cm">
<xsl:apply-templates select="AdditionalInformations" />
</fo:block>
</fo:block>
</xsl:template>
On 24.10.2005 10:21:08 Timo Haberkern wrote:
> Hello again,
>
> thanks for reply. Sorry for the missing information. I'm using the
> version 0.20.5 of FOP. You can find a complete package for testing under:
>
> http://www.emedia-office.de/fop/fop_forum.zip
>
> It contains the generated PDF with the problem on the last site, the xml data file and the XSL file i use to convert
>
> Please help :-)
>
> Timo
>
> Jeremias Maerki wrote:
>
> >The only weird thing I can see here is the extent property on the second
> >region-body. This property doesn't apply to region-body. BTW, it would
> >be much more fun to reproduce your problem if you posted a complete FO
> >file and stated the FOP version you are using. :-)
> >
> >On 21.10.2005 13:47:56 Timo Haberkern wrote:
> >
> >
> >>Hello FOP List,
> >>
> >>i have a problem with overlapping regions. I have content of the
> >>region-body that overlapps content from region-after.
> >>
> >>You can see it on the screenshot:
> >>
> >>http://www.emedia-office.de/fop/overlapping.png
> >>
> >>i have defined my page as follows:
> >>
> >><fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
> >> <fo:layout-master-set>
> >> <fo:simple-page-master master-name="First-Page"
> >>page-height="29.7cm" page-width="21cm">
> >> <fo:region-body margin-left="2cm" margin-right="1.5cm"
> >>margin-top="1cm" margin-bottom="2.5cm" />
> >> <fo:region-start extent="2cm"/>
> >> <fo:region-end extent="1.5cm"/>
> >> <fo:region-after extent="2.0cm"/>
> >> </fo:simple-page-master>
> >> <fo:simple-page-master master-name="Following-Pages"
> >>page-height="29.7cm" page-width="21cm" margin-left="2cm"
> >>margin-right="1.5cm">
> >> <fo:region-body extent="24.7cm" margin-top="3.5cm"
> >>margin-bottom="2.5cm" background-color="rgb(0,255,0)" />
> >> <fo:region-before extent="3.5cm"/>
> >> <fo:region-after extent="2.5cm"/>
> >> </fo:simple-page-master>
> >> <fo:page-sequence-master master-name="rotex-offer">
> >> <fo:single-page-master-reference master-reference="First-Page"/>
> >> <fo:repeatable-page-master-reference
> >>master-reference="Following-Pages" />
> >> </fo:page-sequence-master>
> >> </fo:layout-master-set>
> >>
> >> <fo:page-sequence master-reference="rotex-offer">
> >> <fo:static-content flow-name="xsl-region-after">
> >> <fo:block space-before="1cm">
> >> <fo:table width="100%" table-layout="fixed">
> >> <fo:table-column />
> >> <fo:table-body>
> >> <fo:table-row>
> >> <fo:table-cell border-top="1px #000000
> >>solid" >
> >> <fo:block text-align="right"
> >>font-size="8pt" padding-top="0.1cm">
> >> <fo:page-number/> /
> >><fo:page-number-citation ref-id="terminator"/>
> >> </fo:block>
> >> </fo:table-cell>
> >> </fo:table-row>
> >> </fo:table-body>
> >> </fo:table>
> >> </fo:block>
> >> </fo:static-content>
> >>
> >> <!-- Body -->
> >> <fo:flow flow-name="xsl-region-body">
> >> <fo:block font-size="9pt" >
> >> <xsl:apply-templates select="Offer_letter"/>
> >> </fo:block>
> >> <fo:block id="terminator" />
> >> </fo:flow>
> >> </fo:page-sequence>
> >></fo:root>
> >>
> >>
> >>Any ideas whats going wrong?
> >>
> >>best reagards
> >>
> >>Timo
> >>
> >>
> >
> >
> >Jeremias Maerki
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Problems with overlapping regions
Posted by Timo Haberkern <th...@emedia-office.de>.
Hello again,
thanks for reply. Sorry for the missing information. I'm using the
version 0.20.5 of FOP. You can find a complete package for testing under:
http://www.emedia-office.de/fop/fop_forum.zip
It contains the generated PDF with the problem on the last site, the xml data file and the XSL file i use to convert
Please help :-)
Timo
Jeremias Maerki wrote:
>The only weird thing I can see here is the extent property on the second
>region-body. This property doesn't apply to region-body. BTW, it would
>be much more fun to reproduce your problem if you posted a complete FO
>file and stated the FOP version you are using. :-)
>
>On 21.10.2005 13:47:56 Timo Haberkern wrote:
>
>
>>Hello FOP List,
>>
>>i have a problem with overlapping regions. I have content of the
>>region-body that overlapps content from region-after.
>>
>>You can see it on the screenshot:
>>
>>http://www.emedia-office.de/fop/overlapping.png
>>
>>i have defined my page as follows:
>>
>><fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
>> <fo:layout-master-set>
>> <fo:simple-page-master master-name="First-Page"
>>page-height="29.7cm" page-width="21cm">
>> <fo:region-body margin-left="2cm" margin-right="1.5cm"
>>margin-top="1cm" margin-bottom="2.5cm" />
>> <fo:region-start extent="2cm"/>
>> <fo:region-end extent="1.5cm"/>
>> <fo:region-after extent="2.0cm"/>
>> </fo:simple-page-master>
>> <fo:simple-page-master master-name="Following-Pages"
>>page-height="29.7cm" page-width="21cm" margin-left="2cm"
>>margin-right="1.5cm">
>> <fo:region-body extent="24.7cm" margin-top="3.5cm"
>>margin-bottom="2.5cm" background-color="rgb(0,255,0)" />
>> <fo:region-before extent="3.5cm"/>
>> <fo:region-after extent="2.5cm"/>
>> </fo:simple-page-master>
>> <fo:page-sequence-master master-name="rotex-offer">
>> <fo:single-page-master-reference master-reference="First-Page"/>
>> <fo:repeatable-page-master-reference
>>master-reference="Following-Pages" />
>> </fo:page-sequence-master>
>> </fo:layout-master-set>
>>
>> <fo:page-sequence master-reference="rotex-offer">
>> <fo:static-content flow-name="xsl-region-after">
>> <fo:block space-before="1cm">
>> <fo:table width="100%" table-layout="fixed">
>> <fo:table-column />
>> <fo:table-body>
>> <fo:table-row>
>> <fo:table-cell border-top="1px #000000
>>solid" >
>> <fo:block text-align="right"
>>font-size="8pt" padding-top="0.1cm">
>> <fo:page-number/> /
>><fo:page-number-citation ref-id="terminator"/>
>> </fo:block>
>> </fo:table-cell>
>> </fo:table-row>
>> </fo:table-body>
>> </fo:table>
>> </fo:block>
>> </fo:static-content>
>>
>> <!-- Body -->
>> <fo:flow flow-name="xsl-region-body">
>> <fo:block font-size="9pt" >
>> <xsl:apply-templates select="Offer_letter"/>
>> </fo:block>
>> <fo:block id="terminator" />
>> </fo:flow>
>> </fo:page-sequence>
>></fo:root>
>>
>>
>>Any ideas whats going wrong?
>>
>>best reagards
>>
>>Timo
>>
>>
>
>
>Jeremias Maerki
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Problems with overlapping regions
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
The only weird thing I can see here is the extent property on the second
region-body. This property doesn't apply to region-body. BTW, it would
be much more fun to reproduce your problem if you posted a complete FO
file and stated the FOP version you are using. :-)
On 21.10.2005 13:47:56 Timo Haberkern wrote:
> Hello FOP List,
>
> i have a problem with overlapping regions. I have content of the
> region-body that overlapps content from region-after.
>
> You can see it on the screenshot:
>
> http://www.emedia-office.de/fop/overlapping.png
>
> i have defined my page as follows:
>
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <fo:layout-master-set>
> <fo:simple-page-master master-name="First-Page"
> page-height="29.7cm" page-width="21cm">
> <fo:region-body margin-left="2cm" margin-right="1.5cm"
> margin-top="1cm" margin-bottom="2.5cm" />
> <fo:region-start extent="2cm"/>
> <fo:region-end extent="1.5cm"/>
> <fo:region-after extent="2.0cm"/>
> </fo:simple-page-master>
> <fo:simple-page-master master-name="Following-Pages"
> page-height="29.7cm" page-width="21cm" margin-left="2cm"
> margin-right="1.5cm">
> <fo:region-body extent="24.7cm" margin-top="3.5cm"
> margin-bottom="2.5cm" background-color="rgb(0,255,0)" />
> <fo:region-before extent="3.5cm"/>
> <fo:region-after extent="2.5cm"/>
> </fo:simple-page-master>
> <fo:page-sequence-master master-name="rotex-offer">
> <fo:single-page-master-reference master-reference="First-Page"/>
> <fo:repeatable-page-master-reference
> master-reference="Following-Pages" />
> </fo:page-sequence-master>
> </fo:layout-master-set>
>
> <fo:page-sequence master-reference="rotex-offer">
> <fo:static-content flow-name="xsl-region-after">
> <fo:block space-before="1cm">
> <fo:table width="100%" table-layout="fixed">
> <fo:table-column />
> <fo:table-body>
> <fo:table-row>
> <fo:table-cell border-top="1px #000000
> solid" >
> <fo:block text-align="right"
> font-size="8pt" padding-top="0.1cm">
> <fo:page-number/> /
> <fo:page-number-citation ref-id="terminator"/>
> </fo:block>
> </fo:table-cell>
> </fo:table-row>
> </fo:table-body>
> </fo:table>
> </fo:block>
> </fo:static-content>
>
> <!-- Body -->
> <fo:flow flow-name="xsl-region-body">
> <fo:block font-size="9pt" >
> <xsl:apply-templates select="Offer_letter"/>
> </fo:block>
> <fo:block id="terminator" />
> </fo:flow>
> </fo:page-sequence>
> </fo:root>
>
>
> Any ideas whats going wrong?
>
> best reagards
>
> Timo
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org