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 crischprolch <cr...@yahoo.fr> on 2009/07/29 10:59:18 UTC

Rows borders look so bad...

Hi,

I'm using FOP 0.95 to build PDF files from XML files.

I found a strange thing on rows borders : when I have more than 2 columns in
a table, rows borders are strange. In fact, only the first and the last
columns borders are well drawn, all other columns ar not. On the "fo:table"
element, the "border-collapse" attribute is valued to "collapse". Here is an
example (only the third table is well drawn and there are the problem on the
lines between the lines "ligne1" and "ligne2" ans so between the lines
"ligne3" and "ligne4")  : 

http://www.nabble.com/file/p24715165/imprimEcran_lignesMalTracees.jpg 

I think that this may be a FOP bug on the border-collapse=collapse attribute
because the problem appears where there is a border merging but I am not
sure...

Here the source code : 

<fo:table border-collapse="collapse" font-size="12pt" font-family="Arial">
    <fo:table-column column-width="20%"/>
    <fo:table-column column-width="20%"/>
    <fo:table-column column-width="20%"/>
    <fo:table-column column-width="20%"/>
    <fo:table-column column-width="20%"/>
    <fo:table-body>
        <fo:table-row border="1pt solid blue">
            <fo:table-cell>
                <fo:block>ligne1</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne1</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne1</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne1</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne1</fo:block>
            </fo:table-cell>
        </fo:table-row>
        <fo:table-row  border="1pt solid blue">
            <fo:table-cell>
                <fo:block>ligne2</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne2</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne2</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne2</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne2</fo:block>
            </fo:table-cell>
        </fo:table-row>
    </fo:table-body>
</fo:table>

<fo:block>.</fo:block>
	
<fo:table border-collapse="collapse" font-size="12pt" font-family="Arial">
    <fo:table-column column-width="20%"/>
    <fo:table-column column-width="20%"/>
    <fo:table-column column-width="20%"/>
    <fo:table-column column-width="20%"/>
    <fo:table-body>
        <fo:table-row border="1pt solid blue">
            <fo:table-cell>
                <fo:block>ligne3</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne3</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne3</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne3</fo:block>
            </fo:table-cell>
        </fo:table-row>
        <fo:table-row  border="1pt solid blue">
            <fo:table-cell>
                <fo:block>ligne4</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne4</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne4</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne4</fo:block>
            </fo:table-cell>
        </fo:table-row>
    </fo:table-body>
</fo:table>

<fo:block>.</fo:block>

<fo:table border-collapse="collapse" font-size="12pt" font-family="Arial">
    <fo:table-column column-width="20%"/>
    <fo:table-column column-width="30%"/>
    <fo:table-body>
        <fo:table-row border="1pt solid blue">
            <fo:table-cell>
                <fo:block>ligne5</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne5</fo:block>
            </fo:table-cell>
        </fo:table-row>
        <fo:table-row  border="1pt solid blue">
            <fo:table-cell>
                <fo:block>ligne6</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne6</fo:block>
            </fo:table-cell>
        </fo:table-row>
    </fo:table-body>
</fo:table>


Thanks for your help.
-- 
View this message in context: http://www.nabble.com/Rows-borders-look-so-bad...-tp24715165p24715165.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: AW: Rows borders look so bad...

Posted by crischprolch <cr...@yahoo.fr>.
Thank you for this explanation. So, (tell me if I did not undrstand what you
said) we can by-pass a FOP bug by change the viewer (Adobe Reader)
configuration ?


john farrow wrote:
> 
> What you are seeing is Acrobat anti-aliasing some parts of the border and 
> not others.  You can turn off anti-aliasing in Acrobat to make this go
> away 
> (on your machine), otherwise FOP needs to be fixed to remove the problem. 
> The problem occurs because some parts of the border are drawn using filled 
> shapes and some are drawn using solid lines.  Acrobat applies
> anti-aliasing 
> to one type of rendering and not the other.
> 
> 

-- 
View this message in context: http://www.nabble.com/Rows-borders-look-so-bad...-tp24715165p24739590.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: AW: Rows borders look so bad...

Posted by fomailinglist <fo...@xmlpdf.com>.
What you are seeing is Acrobat anti-aliasing some parts of the border and 
not others.  You can turn off anti-aliasing in Acrobat to make this go away 
(on your machine), otherwise FOP needs to be fixed to remove the problem. 
The problem occurs because some parts of the border are drawn using filled 
shapes and some are drawn using solid lines.  Acrobat applies anti-aliasing 
to one type of rendering and not the other.

----- Original Message ----- 
From: "crischprolch" <cr...@yahoo.fr>
To: <fo...@xmlgraphics.apache.org>
Sent: Wednesday, July 29, 2009 10:00 PM
Subject: SPAM-LOW: Re: AW: Rows borders look so bad...



Thank you for your reply.

"border seem to be one pixel wider (or smaller) than others" : it is exactly
what I have but when I print it, the difference is still visible...

What is surpising, is that when I zoom until the maximum zoom, the
difference disappears. It may be the generated PDF problem or simply the
viewer (I'm using Adobe Reader 9).

Thks.


Georg Datterl wrote:
>
> Hi crischprolch,
>
> I have a similar experience with vertical border lines, in Acrobat parts
> of the border seem to be one pixel wider (or smaller) than others. Since
> it is always a pixel, no matter the zoom factor, and it is not visible in
> print, I ignored it...
>
> Regards,
>
> 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: crischprolch [mailto:crischprolch@yahoo.fr]
> Gesendet: Mittwoch, 29. Juli 2009 10:59
> An: fop-users@xmlgraphics.apache.org
> Betreff: Rows borders look so bad...
>

-- 
View this message in context: 
http://www.nabble.com/Rows-borders-look-so-bad...-tp24715165p24716109.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



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


Re: AW: Rows borders look so bad...

Posted by crischprolch <cr...@yahoo.fr>.
Thank you for your reply.

"border seem to be one pixel wider (or smaller) than others" : it is exactly
what I have but when I print it, the difference is still visible...

What is surpising, is that when I zoom until the maximum zoom, the
difference disappears. It may be the generated PDF problem or simply the
viewer (I'm using Adobe Reader 9).

Thks.


Georg Datterl wrote:
> 
> Hi crischprolch, 
> 
> I have a similar experience with vertical border lines, in Acrobat parts
> of the border seem to be one pixel wider (or smaller) than others. Since
> it is always a pixel, no matter the zoom factor, and it is not visible in
> print, I ignored it...
> 
> Regards,
>  
> 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: crischprolch [mailto:crischprolch@yahoo.fr] 
> Gesendet: Mittwoch, 29. Juli 2009 10:59
> An: fop-users@xmlgraphics.apache.org
> Betreff: Rows borders look so bad...
> 

-- 
View this message in context: http://www.nabble.com/Rows-borders-look-so-bad...-tp24715165p24716109.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


AW: Rows borders look so bad...

Posted by Georg Datterl <ge...@geneon.de>.
Hi crischprolch, 

I have a similar experience with vertical border lines, in Acrobat parts of the border seem to be one pixel wider (or smaller) than others. Since it is always a pixel, no matter the zoom factor, and it is not visible in print, I ignored it...

Regards,
 
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: crischprolch [mailto:crischprolch@yahoo.fr] 
Gesendet: Mittwoch, 29. Juli 2009 10:59
An: fop-users@xmlgraphics.apache.org
Betreff: Rows borders look so bad...


Hi,

I'm using FOP 0.95 to build PDF files from XML files.

I found a strange thing on rows borders : when I have more than 2 columns in a table, rows borders are strange. In fact, only the first and the last columns borders are well drawn, all other columns ar not. On the "fo:table"
element, the "border-collapse" attribute is valued to "collapse". Here is an example (only the third table is well drawn and there are the problem on the lines between the lines "ligne1" and "ligne2" ans so between the lines "ligne3" and "ligne4")  : 

http://www.nabble.com/file/p24715165/imprimEcran_lignesMalTracees.jpg 

I think that this may be a FOP bug on the border-collapse=collapse attribute because the problem appears where there is a border merging but I am not sure...

Here the source code : 

<fo:table border-collapse="collapse" font-size="12pt" font-family="Arial">
    <fo:table-column column-width="20%"/>
    <fo:table-column column-width="20%"/>
    <fo:table-column column-width="20%"/>
    <fo:table-column column-width="20%"/>
    <fo:table-column column-width="20%"/>
    <fo:table-body>
        <fo:table-row border="1pt solid blue">
            <fo:table-cell>
                <fo:block>ligne1</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne1</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne1</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne1</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne1</fo:block>
            </fo:table-cell>
        </fo:table-row>
        <fo:table-row  border="1pt solid blue">
            <fo:table-cell>
                <fo:block>ligne2</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne2</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne2</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne2</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne2</fo:block>
            </fo:table-cell>
        </fo:table-row>
    </fo:table-body>
</fo:table>

<fo:block>.</fo:block>
	
<fo:table border-collapse="collapse" font-size="12pt" font-family="Arial">
    <fo:table-column column-width="20%"/>
    <fo:table-column column-width="20%"/>
    <fo:table-column column-width="20%"/>
    <fo:table-column column-width="20%"/>
    <fo:table-body>
        <fo:table-row border="1pt solid blue">
            <fo:table-cell>
                <fo:block>ligne3</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne3</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne3</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne3</fo:block>
            </fo:table-cell>
        </fo:table-row>
        <fo:table-row  border="1pt solid blue">
            <fo:table-cell>
                <fo:block>ligne4</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne4</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne4</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne4</fo:block>
            </fo:table-cell>
        </fo:table-row>
    </fo:table-body>
</fo:table>

<fo:block>.</fo:block>

<fo:table border-collapse="collapse" font-size="12pt" font-family="Arial">
    <fo:table-column column-width="20%"/>
    <fo:table-column column-width="30%"/>
    <fo:table-body>
        <fo:table-row border="1pt solid blue">
            <fo:table-cell>
                <fo:block>ligne5</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne5</fo:block>
            </fo:table-cell>
        </fo:table-row>
        <fo:table-row  border="1pt solid blue">
            <fo:table-cell>
                <fo:block>ligne6</fo:block>
            </fo:table-cell>
            <fo:table-cell>
                <fo:block>ligne6</fo:block>
            </fo:table-cell>
        </fo:table-row>
    </fo:table-body>
</fo:table>


Thanks for your help.
--
View this message in context: http://www.nabble.com/Rows-borders-look-so-bad...-tp24715165p24715165.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


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