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 Matthias Müller <py...@yahoo.de> on 2011/01/12 14:40:00 UTC
Tables bottom border on each page
Hi there,
I'm rendering a table over multiple pages.
The bottom border (border-after) is only rendered at the end of the table (last
page), but i want the table to have a bottom border before each page break.
Enclosed you can find a sample fo file: The red border is missing at the bottom
of the first page.
Any ideas?
Matthias
-- Sample --
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="first" margin-right="1.5cm"
margin-left="1.5cm" margin-bottom="2cm" margin-top="1cm" page-width="20cm"
page-height="20cm">
<fo:region-body margin-top="2cm"/>
<fo:region-before extent="1cm"/>
<fo:region-after extent="1.5cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="first">
<fo:flow flow-name="xsl-region-body">
<fo:table border-collapse="collapse" table-layout="fixed"
border="4pt solid red">
<fo:table-column column-width="3cm" border="1pt solid black"/>
<fo:table-column column-width="3cm" border="1pt solid black"/>
<fo:table-column column-width="3cm" border="1pt solid black"/>
<fo:table-body>
<fo:table-row border="1pt solid black" line-height="50mm">
<fo:table-cell><fo:block>(1,1)</fo:block></fo:table-cell>
<fo:table-cell><fo:block>(1,2)</fo:block></fo:table-cell>
<fo:table-cell><fo:block>(1,3)</fo:block></fo:table-cell>
</fo:table-row>
<fo:table-row border="1pt solid black" line-height="50mm">
<fo:table-cell><fo:block>(2,1)</fo:block></fo:table-cell>
<fo:table-cell><fo:block>(2,2)</fo:block></fo:table-cell>
<fo:table-cell><fo:block>(2,3)</fo:block></fo:table-cell>
</fo:table-row>
<fo:table-row border="1pt solid black" line-height="50mm">
<fo:table-cell><fo:block>(3,1)</fo:block></fo:table-cell>
<fo:table-cell><fo:block>(3,2)</fo:block></fo:table-cell>
<fo:table-cell><fo:block>(3,3)</fo:block></fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:flow>
</fo:page-sequence>
</fo:root>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
AW: AW: Tables bottom border on each page
Posted by Matthias Müller <py...@yahoo.de>.
Hi Georg,
thanks for replying. Works perfect!
----- Ursprüngliche Mail ----
Von: Georg Datterl <ge...@geneon.de>
An: "fop-users@xmlgraphics.apache.org" <fo...@xmlgraphics.apache.org>
Gesendet: Mittwoch, den 12. Januar 2011, 14:42:57 Uhr
Betreff: AW: Tables bottom border on each page
Hi Matthias,
Define a table footer and add the border there. The table end border is only
printed at the end of the table, which is on the last page.
Mit freundlichen Grüßen
Georg Datterl
------ Kontakt ------
Georg Datterl
Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg
HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert
Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20
www.geneon.de
Weitere Mitglieder der Willmy MediaGroup:
IRS Integrated Realization Services GmbH: www.irs-nbg.de
Willmy PrintMedia GmbH: www.willmy.de
Willmy Consult & Content GmbH: www.willmycc.de
-----Ursprüngliche Nachricht-----
Von: Matthias Müller [mailto:pymote@yahoo.de]
Gesendet: Mittwoch, 12. Januar 2011 14:40
An: fop-users xmlgraphics
Betreff: Tables bottom border on each page
Hi there,
I'm rendering a table over multiple pages.
The bottom border (border-after) is only rendered at the end of the table (last
page), but i want the table to have a bottom border before each page break.
Enclosed you can find a sample fo file: The red border is missing at the bottom
of the first page.
Any ideas?
Matthias
-- Sample --
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="first" margin-right="1.5cm"
margin-left="1.5cm" margin-bottom="2cm" margin-top="1cm" page-width="20cm"
page-height="20cm">
<fo:region-body margin-top="2cm"/>
<fo:region-before extent="1cm"/>
<fo:region-after extent="1.5cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="first">
<fo:flow flow-name="xsl-region-body">
<fo:table border-collapse="collapse" table-layout="fixed"
border="4pt solid red">
<fo:table-column column-width="3cm" border="1pt solid black"/>
<fo:table-column column-width="3cm" border="1pt solid black"/>
<fo:table-column column-width="3cm" border="1pt solid black"/>
<fo:table-body>
<fo:table-row border="1pt solid black" line-height="50mm">
<fo:table-cell><fo:block>(1,1)</fo:block></fo:table-cell>
<fo:table-cell><fo:block>(1,2)</fo:block></fo:table-cell>
<fo:table-cell><fo:block>(1,3)</fo:block></fo:table-cell>
</fo:table-row>
<fo:table-row border="1pt solid black" line-height="50mm">
<fo:table-cell><fo:block>(2,1)</fo:block></fo:table-cell>
<fo:table-cell><fo:block>(2,2)</fo:block></fo:table-cell>
<fo:table-cell><fo:block>(2,3)</fo:block></fo:table-cell>
</fo:table-row>
<fo:table-row border="1pt solid black" line-height="50mm">
<fo:table-cell><fo:block>(3,1)</fo:block></fo:table-cell>
<fo:table-cell><fo:block>(3,2)</fo:block></fo:table-cell>
<fo:table-cell><fo:block>(3,3)</fo:block></fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:flow>
</fo:page-sequence>
</fo:root>
---------------------------------------------------------------------
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
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Tables bottom border on each page
Posted by Vincent Hennebert <vh...@gmail.com>.
Hi,
On 12/01/11 13:42, Georg Datterl wrote:
> Hi Matthias,
>
> Define a table footer and add the border there. The table end border is only printed at the end of the table, which is on the last page.
Alternatively, you can add the following properties to the fo:table
element:
border-after-width.length="4pt"
border-after-width.conditionality="retain"
> Mit freundlichen Grüßen
>
> Georg Datterl
HTH,
Vincent
> ------ Kontakt ------
>
> Georg Datterl
>
> Geneon media solutions gmbh
> Gutenstetter Straße 8a
> 90449 Nürnberg
>
> HRB Nürnberg: 17193
> Geschäftsführer: Yong-Harry Steiert
>
> Tel.: 0911/36 78 88 - 26
> Fax: 0911/36 78 88 - 20
>
> www.geneon.de
>
> Weitere Mitglieder der Willmy MediaGroup:
>
> IRS Integrated Realization Services GmbH: www.irs-nbg.de
> Willmy PrintMedia GmbH: www.willmy.de
> Willmy Consult & Content GmbH: www.willmycc.de
>
> -----Ursprüngliche Nachricht-----
> Von: Matthias Müller [mailto:pymote@yahoo.de]
> Gesendet: Mittwoch, 12. Januar 2011 14:40
> An: fop-users xmlgraphics
> Betreff: Tables bottom border on each page
>
> Hi there,
>
> I'm rendering a table over multiple pages.
> The bottom border (border-after) is only rendered at the end of the table (last
> page), but i want the table to have a bottom border before each page break.
>
> Enclosed you can find a sample fo file: The red border is missing at the bottom
> of the first page.
>
> Any ideas?
>
> Matthias
>
> -- Sample --
>
> <?xml version="1.0" encoding="UTF-8"?>
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <fo:layout-master-set>
> <fo:simple-page-master master-name="first" margin-right="1.5cm"
> margin-left="1.5cm" margin-bottom="2cm" margin-top="1cm" page-width="20cm"
> page-height="20cm">
> <fo:region-body margin-top="2cm"/>
> <fo:region-before extent="1cm"/>
> <fo:region-after extent="1.5cm"/>
> </fo:simple-page-master>
> </fo:layout-master-set>
> <fo:page-sequence master-reference="first">
> <fo:flow flow-name="xsl-region-body">
> <fo:table border-collapse="collapse" table-layout="fixed"
> border="4pt solid red">
> <fo:table-column column-width="3cm" border="1pt solid black"/>
> <fo:table-column column-width="3cm" border="1pt solid black"/>
> <fo:table-column column-width="3cm" border="1pt solid black"/>
> <fo:table-body>
> <fo:table-row border="1pt solid black" line-height="50mm">
>
> <fo:table-cell><fo:block>(1,1)</fo:block></fo:table-cell>
>
> <fo:table-cell><fo:block>(1,2)</fo:block></fo:table-cell>
>
> <fo:table-cell><fo:block>(1,3)</fo:block></fo:table-cell>
> </fo:table-row>
> <fo:table-row border="1pt solid black" line-height="50mm">
>
> <fo:table-cell><fo:block>(2,1)</fo:block></fo:table-cell>
>
> <fo:table-cell><fo:block>(2,2)</fo:block></fo:table-cell>
>
> <fo:table-cell><fo:block>(2,3)</fo:block></fo:table-cell>
> </fo:table-row>
> <fo:table-row border="1pt solid black" line-height="50mm">
>
> <fo:table-cell><fo:block>(3,1)</fo:block></fo:table-cell>
>
> <fo:table-cell><fo:block>(3,2)</fo:block></fo:table-cell>
>
> <fo:table-cell><fo:block>(3,3)</fo:block></fo:table-cell>
> </fo:table-row>
> </fo:table-body>
> </fo:table>
> </fo:flow>
> </fo:page-sequence>
> </fo:root>
>
>
>
> ---------------------------------------------------------------------
> 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
AW: Tables bottom border on each page
Posted by Georg Datterl <ge...@geneon.de>.
Hi Matthias,
Define a table footer and add the border there. The table end border is only printed at the end of the table, which is on the last page.
Mit freundlichen Grüßen
Georg Datterl
------ Kontakt ------
Georg Datterl
Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg
HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert
Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20
www.geneon.de
Weitere Mitglieder der Willmy MediaGroup:
IRS Integrated Realization Services GmbH: www.irs-nbg.de
Willmy PrintMedia GmbH: www.willmy.de
Willmy Consult & Content GmbH: www.willmycc.de
-----Ursprüngliche Nachricht-----
Von: Matthias Müller [mailto:pymote@yahoo.de]
Gesendet: Mittwoch, 12. Januar 2011 14:40
An: fop-users xmlgraphics
Betreff: Tables bottom border on each page
Hi there,
I'm rendering a table over multiple pages.
The bottom border (border-after) is only rendered at the end of the table (last
page), but i want the table to have a bottom border before each page break.
Enclosed you can find a sample fo file: The red border is missing at the bottom
of the first page.
Any ideas?
Matthias
-- Sample --
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="first" margin-right="1.5cm"
margin-left="1.5cm" margin-bottom="2cm" margin-top="1cm" page-width="20cm"
page-height="20cm">
<fo:region-body margin-top="2cm"/>
<fo:region-before extent="1cm"/>
<fo:region-after extent="1.5cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="first">
<fo:flow flow-name="xsl-region-body">
<fo:table border-collapse="collapse" table-layout="fixed"
border="4pt solid red">
<fo:table-column column-width="3cm" border="1pt solid black"/>
<fo:table-column column-width="3cm" border="1pt solid black"/>
<fo:table-column column-width="3cm" border="1pt solid black"/>
<fo:table-body>
<fo:table-row border="1pt solid black" line-height="50mm">
<fo:table-cell><fo:block>(1,1)</fo:block></fo:table-cell>
<fo:table-cell><fo:block>(1,2)</fo:block></fo:table-cell>
<fo:table-cell><fo:block>(1,3)</fo:block></fo:table-cell>
</fo:table-row>
<fo:table-row border="1pt solid black" line-height="50mm">
<fo:table-cell><fo:block>(2,1)</fo:block></fo:table-cell>
<fo:table-cell><fo:block>(2,2)</fo:block></fo:table-cell>
<fo:table-cell><fo:block>(2,3)</fo:block></fo:table-cell>
</fo:table-row>
<fo:table-row border="1pt solid black" line-height="50mm">
<fo:table-cell><fo:block>(3,1)</fo:block></fo:table-cell>
<fo:table-cell><fo:block>(3,2)</fo:block></fo:table-cell>
<fo:table-cell><fo:block>(3,3)</fo:block></fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:flow>
</fo:page-sequence>
</fo:root>
---------------------------------------------------------------------
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