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 aemitic <ae...@gmail.com> on 2010/06/10 16:31:22 UTC
cell border rendering error with number-column-spanned
Hi all,
I found that using the attribute number-column-spanned inside a cell
element, I get a bad rendering of the cell border: it gets thicker in the
central section of the border.
for example:
<fo:table border="solid 2pt black" width="100%" table-layout="fixed">
<fo:table-column column-width="proportional-column-width(1)"/>
<fo:table-column column-width="proportional-column-width(1)"/>
<fo:table-column column-width="proportional-column-width(1)"/>
<fo:table-column column-width="proportional-column-width(1)"/>
<fo:table-column column-width="proportional-column-width(1)"/>
<fo:table-column column-width="proportional-column-width(1)"/>
<fo:table-column column-width="proportional-column-width(1)"/>
<fo:table-column column-width="proportional-column-width(1)"/>
<fo:table-column column-width="proportional-column-width(1)"/>
<fo:table-column column-width="proportional-column-width(1)"/>
<fo:table-column column-width="proportional-column-width(1)"/>
<fo:table-column column-width="proportional-column-width(1)"/>
<fo:table-header>
<fo:table-row>
<fo:table-cell number-columns-spanned="12" padding-left="4pt"
padding="2pt" border="solid 2pt black">
<fo:block font-weight="bold"> Indice </fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell number-columns-spanned="4" padding-left="4pt"
padding="2pt" border="solid 2pt black">
<fo:block font-weight="bold"> <Livello> ; <Nome>
</fo:block>
</fo:table-cell>
<fo:table-cell number-columns-spanned="4" padding-left="4pt"
padding="2pt" border="solid 2pt black">
<fo:block font-weight="bold"> Col1</fo:block>
</fo:table-cell>
<fo:table-cell number-columns-spanned="4" padding-left="4pt"
padding="2pt" border="solid 2pt black">
<fo:block font-weight="bold"> Col2 </fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-body>
<fo:table-row>
<fo:table-cell number-columns-spanned="4" padding-left="4pt"
padding="2pt" border="solid 1pt black">
<fo:block>pagegroup ; NUMBER </fo:block>
</fo:table-cell>
<fo:table-cell number-columns-spanned="4" padding-left="4pt"
padding="2pt" border="solid 1pt black">
<fo:block>678901234567</fo:block>
</fo:table-cell>
<fo:table-cell number-columns-spanned="4" padding-left="4pt"
padding="2pt" border="solid 1pt black">
<fo:block/>
</fo:table-cell>
</fo:table-body>
</fo:table>
--
View this message in context: http://old.nabble.com/cell-border-rendering-error-with-number-column-spanned-tp28843905p28843905.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: cell border rendering error with number-column-spanned
Posted by aemitic <ae...@gmail.com>.
Hi,
thanks for your reply.
the rendering gets a little better (but not perfect) by unchecking the 2D
acceleration, but the problem is still there.
I mean, in the central section of the border, the fop generates a rule which
is rendered a little different from the border, so the table looks really
ugly (even after a print test).
Why does the fop generates such rule? or why such rule is not generated for
all the border lenght?
I have attached a .fo file that generates the table with the rendering
error.
Thank you in advance
http://old.nabble.com/file/p28853259/test.fo test.fo
Pascal Sancho wrote:
>
> Hi,
> That seems to be related to anti aliasing.
> When zooming, the thickness variation disappears.
> In Adobe reader, anti-aliasing can be disabled by unchecking the 2D
> acceleration.
>
> --
> Pascal
>
> Le 10/06/2010 16:31, aemitic a écrit :
>> Hi all,
>>
>> I found that using the attribute number-column-spanned inside a cell
>> element, I get a bad rendering of the cell border: it gets thicker in the
>> central section of the border.
>>
>> for example:
>>
>> <fo:table border="solid 2pt black" width="100%" table-layout="fixed">
>> <fo:table-column column-width="proportional-column-width(1)"/>
>> <fo:table-column column-width="proportional-column-width(1)"/>
>> <fo:table-column column-width="proportional-column-width(1)"/>
>> <fo:table-column column-width="proportional-column-width(1)"/>
>> <fo:table-column column-width="proportional-column-width(1)"/>
>> <fo:table-column column-width="proportional-column-width(1)"/>
>> <fo:table-column column-width="proportional-column-width(1)"/>
>> <fo:table-column column-width="proportional-column-width(1)"/>
>> <fo:table-column column-width="proportional-column-width(1)"/>
>> <fo:table-column column-width="proportional-column-width(1)"/>
>> <fo:table-column column-width="proportional-column-width(1)"/>
>> <fo:table-column column-width="proportional-column-width(1)"/>
>> <fo:table-header>
>> <fo:table-row>
>> <fo:table-cell number-columns-spanned="12" padding-left="4pt"
>> padding="2pt" border="solid 2pt black">
>> <fo:block font-weight="bold"> Indice </fo:block>
>> </fo:table-cell>
>> </fo:table-row>
>> <fo:table-row>
>> <fo:table-cell number-columns-spanned="4" padding-left="4pt"
>> padding="2pt" border="solid 2pt black">
>> <fo:block font-weight="bold"> <Livello> ; <Nome>
>> </fo:block>
>> </fo:table-cell>
>> <fo:table-cell number-columns-spanned="4" padding-left="4pt"
>> padding="2pt" border="solid 2pt black">
>> <fo:block font-weight="bold"> Col1</fo:block>
>> </fo:table-cell>
>> <fo:table-cell number-columns-spanned="4" padding-left="4pt"
>> padding="2pt" border="solid 2pt black">
>> <fo:block font-weight="bold"> Col2 </fo:block>
>> </fo:table-cell>
>> </fo:table-row>
>> </fo:table-header>
>> <fo:table-body>
>> <fo:table-row>
>> <fo:table-cell number-columns-spanned="4" padding-left="4pt"
>> padding="2pt" border="solid 1pt black">
>> <fo:block>pagegroup ; NUMBER </fo:block>
>> </fo:table-cell>
>> <fo:table-cell number-columns-spanned="4" padding-left="4pt"
>> padding="2pt" border="solid 1pt black">
>> <fo:block>678901234567</fo:block>
>> </fo:table-cell>
>> <fo:table-cell number-columns-spanned="4" padding-left="4pt"
>> padding="2pt" border="solid 1pt black">
>> <fo:block/>
>> </fo:table-cell>
>>
>> </fo:table-body>
>> </fo:table>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>
--
View this message in context: http://old.nabble.com/cell-border-rendering-error-with-number-column-spanned-tp28843905p28853259.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: cell border rendering error with number-column-spanned
Posted by Pascal Sancho <pa...@takoma.fr>.
Hi,
That seems to be related to anti aliasing.
When zooming, the thickness variation disappears.
In Adobe reader, anti-aliasing can be disabled by unchecking the 2D
acceleration.
--
Pascal
Le 10/06/2010 16:31, aemitic a écrit :
> Hi all,
>
> I found that using the attribute number-column-spanned inside a cell
> element, I get a bad rendering of the cell border: it gets thicker in the
> central section of the border.
>
> for example:
>
> <fo:table border="solid 2pt black" width="100%" table-layout="fixed">
> <fo:table-column column-width="proportional-column-width(1)"/>
> <fo:table-column column-width="proportional-column-width(1)"/>
> <fo:table-column column-width="proportional-column-width(1)"/>
> <fo:table-column column-width="proportional-column-width(1)"/>
> <fo:table-column column-width="proportional-column-width(1)"/>
> <fo:table-column column-width="proportional-column-width(1)"/>
> <fo:table-column column-width="proportional-column-width(1)"/>
> <fo:table-column column-width="proportional-column-width(1)"/>
> <fo:table-column column-width="proportional-column-width(1)"/>
> <fo:table-column column-width="proportional-column-width(1)"/>
> <fo:table-column column-width="proportional-column-width(1)"/>
> <fo:table-column column-width="proportional-column-width(1)"/>
> <fo:table-header>
> <fo:table-row>
> <fo:table-cell number-columns-spanned="12" padding-left="4pt"
> padding="2pt" border="solid 2pt black">
> <fo:block font-weight="bold"> Indice </fo:block>
> </fo:table-cell>
> </fo:table-row>
> <fo:table-row>
> <fo:table-cell number-columns-spanned="4" padding-left="4pt"
> padding="2pt" border="solid 2pt black">
> <fo:block font-weight="bold"> <Livello> ; <Nome>
> </fo:block>
> </fo:table-cell>
> <fo:table-cell number-columns-spanned="4" padding-left="4pt"
> padding="2pt" border="solid 2pt black">
> <fo:block font-weight="bold"> Col1</fo:block>
> </fo:table-cell>
> <fo:table-cell number-columns-spanned="4" padding-left="4pt"
> padding="2pt" border="solid 2pt black">
> <fo:block font-weight="bold"> Col2 </fo:block>
> </fo:table-cell>
> </fo:table-row>
> </fo:table-header>
> <fo:table-body>
> <fo:table-row>
> <fo:table-cell number-columns-spanned="4" padding-left="4pt"
> padding="2pt" border="solid 1pt black">
> <fo:block>pagegroup ; NUMBER </fo:block>
> </fo:table-cell>
> <fo:table-cell number-columns-spanned="4" padding-left="4pt"
> padding="2pt" border="solid 1pt black">
> <fo:block>678901234567</fo:block>
> </fo:table-cell>
> <fo:table-cell number-columns-spanned="4" padding-left="4pt"
> padding="2pt" border="solid 1pt black">
> <fo:block/>
> </fo:table-cell>
>
> </fo:table-body>
> </fo:table>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: cell border rendering error with number-column-spanned
Posted by aemitic <ae...@gmail.com>.
up
aemitic wrote:
>
> Hi all,
>
> I found that using the attribute number-column-spanned inside a cell
> element, I get a bad rendering of the cell border: it gets thicker in the
> central section of the border.
>
> for example:
>
> <fo:table border="solid 2pt black" width="100%" table-layout="fixed">
> <fo:table-column column-width="proportional-column-width(1)"/>
> <fo:table-column column-width="proportional-column-width(1)"/>
> <fo:table-column column-width="proportional-column-width(1)"/>
> <fo:table-column column-width="proportional-column-width(1)"/>
> <fo:table-column column-width="proportional-column-width(1)"/>
> <fo:table-column column-width="proportional-column-width(1)"/>
> <fo:table-column column-width="proportional-column-width(1)"/>
> <fo:table-column column-width="proportional-column-width(1)"/>
> <fo:table-column column-width="proportional-column-width(1)"/>
> <fo:table-column column-width="proportional-column-width(1)"/>
> <fo:table-column column-width="proportional-column-width(1)"/>
> <fo:table-column column-width="proportional-column-width(1)"/>
> <fo:table-header>
> <fo:table-row>
> <fo:table-cell number-columns-spanned="12" padding-left="4pt"
> padding="2pt" border="solid 2pt black">
> <fo:block font-weight="bold"> Indice </fo:block>
> </fo:table-cell>
> </fo:table-row>
> <fo:table-row>
> <fo:table-cell number-columns-spanned="4" padding-left="4pt"
> padding="2pt" border="solid 2pt black">
> <fo:block font-weight="bold"> <Livello> ; <Nome>
> </fo:block>
> </fo:table-cell>
> <fo:table-cell number-columns-spanned="4" padding-left="4pt"
> padding="2pt" border="solid 2pt black">
> <fo:block font-weight="bold"> Col1</fo:block>
> </fo:table-cell>
> <fo:table-cell number-columns-spanned="4" padding-left="4pt"
> padding="2pt" border="solid 2pt black">
> <fo:block font-weight="bold"> Col2 </fo:block>
> </fo:table-cell>
> </fo:table-row>
> </fo:table-header>
> <fo:table-body>
> <fo:table-row>
> <fo:table-cell number-columns-spanned="4" padding-left="4pt"
> padding="2pt" border="solid 1pt black">
> <fo:block>pagegroup ; NUMBER </fo:block>
> </fo:table-cell>
> <fo:table-cell number-columns-spanned="4" padding-left="4pt"
> padding="2pt" border="solid 1pt black">
> <fo:block>678901234567</fo:block>
> </fo:table-cell>
> <fo:table-cell number-columns-spanned="4" padding-left="4pt"
> padding="2pt" border="solid 1pt black">
> <fo:block/>
> </fo:table-cell>
>
> </fo:table-body>
> </fo:table>
>
--
View this message in context: http://old.nabble.com/cell-border-rendering-error-with-number-column-spanned-tp28843905p28900395.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org