Hi all,

please find attached an FO file and two PDFs, which were rendered from it. One was rendered by FOP 0.95, while the other was rendered by FOP 1.1.

If you compare the PDFs, you'll see that the header "Price (EUR)" as well as the value "8,888,888.88" jut out to the right in the FOP 1.1 rendering, while they look fine in the FOP 0.95 output.

The structure of the fo:table is such that the rightmost column is too small to fit either of these two items, so they have to overflow the table cell in some way (cut off is not an option here). In FOP 0.95 the items flow out to the left, practically into the previous table cell, but there is enough room to accommodate them. Whereas FOP 1.1 flows the items out to the right of the table cell, which in this case looks ugly.

My questions are: can I get the old rendering behavior back? Perhaps by changing something in the FO? And who is actually doing the right thing, FOP 0.95 or FOP 1.1?

Note: in FOP 1.1 these were rendered with the "Complex Scripts" feature off, so as to minimise variation between FOP 0.95 and 1.1.

Many thanks in advance for any pointers,

Ulrich
<?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 page-height="29.7cm" page-width="21cm" master-name="simple">
		<fo:region-body margin-right="2cm" margin-left="2cm" margin-bottom="2.5cm" margin-top="5cm"/>
	</fo:simple-page-master>
</fo:layout-master-set>

<fo:page-sequence master-reference="simple">

<fo:flow flow-name="xsl-region-body">

<fo:block font-family="Helvetica" font-size="10pt" line-height="12pt">

<fo:table space-after.optimum="2pt" space-before.optimum="2pt" width="17cm" table-layout="fixed">

<fo:table-column column-width="2.8cm"/>
<fo:table-column column-width="3.5cm"/>
<fo:table-column column-width="9.2cm"/>
<fo:table-column column-width="1.5cm"/>

<fo:table-body>

<fo:table-row font-weight="bold" line-height="10pt" font-size="12pt" background-color="white" border-bottom="0.5pt black solid" border-top="0.5pt black solid"><fo:table-cell padding-after="2pt" padding-before="4pt" padding-start="3pt"><fo:block>Article</fo:block></fo:table-cell><fo:table-cell padding-after="2pt" padding-before="4pt" padding-start="3pt"><fo:block>Code</fo:block></fo:table-cell><fo:table-cell padding-after="2pt" padding-before="4pt" padding-start="3pt"><fo:block>Description</fo:block></fo:table-cell><fo:table-cell padding-after="2pt" padding-before="4pt"><fo:block end-indent="5pt" text-align="end">Price (EUR)</fo:block></fo:table-cell></fo:table-row>

<fo:table-row line-height="10pt" font-size="9pt" background-color="white"><fo:table-cell padding-after="1pt" padding-before="3pt" padding-start="3pt"><fo:block>65-877318374</fo:block></fo:table-cell><fo:table-cell padding-after="1pt" padding-before="3pt" padding-start="3pt"><fo:block>H7Z-UUT12a 2012</fo:block></fo:table-cell><fo:table-cell padding-after="1pt" padding-before="3pt" padding-start="3pt"><fo:block>Item 1</fo:block></fo:table-cell><fo:table-cell padding-after="1pt" padding-before="3pt"><fo:block end-indent="5pt" text-align="end">6723.12</fo:block></fo:table-cell></fo:table-row>

<fo:table-row line-height="10pt" font-size="9pt" background-color="white"><fo:table-cell padding-after="1pt" padding-before="1pt" padding-start="3pt"><fo:block>36-375819409</fo:block></fo:table-cell><fo:table-cell padding-after="1pt" padding-before="1pt" padding-start="3pt"><fo:block>H7T-MK431b 2013</fo:block></fo:table-cell><fo:table-cell padding-after="1pt" padding-before="1pt" padding-start="3pt"><fo:block>Item with a very long description, which is perfectly ok, but we'd still like to use the available space as efficiently as possible .....</fo:block></fo:table-cell><fo:table-cell padding-after="1pt" padding-before="1pt"><fo:block end-indent="5pt" text-align="end">553.84</fo:block></fo:table-cell></fo:table-row>

<fo:table-row line-height="10pt" font-size="9pt" background-color="white"><fo:table-cell padding-after="1pt" padding-before="1pt" padding-start="3pt"><fo:block>53-371223865</fo:block></fo:table-cell><fo:table-cell padding-after="1pt" padding-before="1pt" padding-start="3pt"><fo:block>UZ6-8PL2Qa 2009</fo:block></fo:table-cell><fo:table-cell padding-after="1pt" padding-before="1pt" padding-start="3pt"><fo:block>Item 3</fo:block></fo:table-cell><fo:table-cell padding-after="1pt" padding-before="1pt"><fo:block end-indent="5pt" text-align="end">84.47</fo:block></fo:table-cell></fo:table-row>

<fo:table-row line-height="11pt" font-weight="bold" font-size="9pt" background-color="white" border-bottom="0.5pt black solid" border-top="0.5pt black solid"><fo:table-cell padding-after="3pt" padding-before="4pt" padding-start="3pt" number-columns-spanned="3"><fo:block>Sum Total</fo:block></fo:table-cell><fo:table-cell padding-after="3pt" padding-before="4pt"><fo:block end-indent="5pt" text-align="end">8,888,888.88</fo:block></fo:table-cell></fo:table-row>

</fo:table-body>

</fo:table>

</fo:block>

</fo:flow>

</fo:page-sequence>

</fo:root>

Attachment: overflow-0.95.pdf
Description: Adobe PDF document

Attachment: overflow-1.1.pdf
Description: Adobe PDF document

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to