xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pascal Sancho <pascal.san...@takoma.fr>
Subject Re: table border-collapse="collapse" and borders
Date Thu, 18 Mar 2010 08:32:45 GMT
Hi,

FOP atomic measurement is the millipoint (1/72000 in), witch give a
precision highly beyond the screen one (often 1/96 in):
the line can be drawn riding 2 pixels width, while its actual width is
about 1 pixel, so its screen rendering can depend on its position on the
screen grid.
If you zoom in (within the PDF viewer), the difference should disappear.

IMHO, there is no trouble when I see what you get.

Pascal



Red Light a écrit :
> hi,
>
> i got the following table  :
>
> <fo:table  border-collapse="collapse" border="1pt solid black" 
> margin-top="6.0pt"  table-layout="fixed" width="100%"  >
>       
>        <fo:table-column column-width="25%" border-right="1pt solid
> black"  />
>         <fo:table-column column-width="10%" border-right="1pt solid
> black" />
>         <fo:table-column column-width="25%" border-right="1pt solid
> black" />
>       <fo:table-column column-width="40%"  />
>    
>       <fo:table-header  >   
>            <fo:table-row   >
>           
>              <fo:table-cell   border-bottom="1pt solid black"   >
>                    <fo:block margin-top="4mm" text-align="center" 
> font-size="9.0pt" font-family="Arial">
>                       <xsl:text>Degree Type</xsl:text>
>                    </fo:block>
>                </fo:table-cell>           
>              <fo:table-cell   border-bottom="1pt solid black"  >
>                   <fo:block  text-align="center" font-size="9.0pt" 
> font-family="Arial" >                                 
>                       <xsl:text>Year received or Expected</xsl:text>
>                   </fo:block>                         
>              </fo:table-cell>
>              <fo:table-cell    border-bottom="1pt solid black" >
>                    <fo:block  margin-top="4mm"  text-align="center" 
> font-size="9.0pt" font-family="Arial" >
>                       <xsl:text>Disicpline/Field/Speciality</xsl:text>
>                    </fo:block>
>                </fo:table-cell>
>                <fo:table-cell   border-bottom="1pt solid black" >
>                    <fo:block margin-top="4mm" text-align="center" 
> font-size="9pt" font-family="Arial" >
>                       <xsl:text>Institution and Country</xsl:text>
>                    </fo:block>
>                </fo:table-cell>
>              </fo:table-row>
>       </fo:table-header>
>     <fo:table-body >
>       <xsl:choose>
>         <xsl:when  test="string(/academicBackground/degrees/degree)">
>                                                                      
>           
>                   <xsl:for-each
> select="/academicBackground/degrees/degree">
>                  
>       <fo:table-row   >
>         <fo:table-cell    >
>          <fo:block margin-left="0.5mm" font-size="11.0pt"
> font-family="Times">
>             <xsl:value-of select="degreeType"></xsl:value-of>
>          </fo:block>
>         </fo:table-cell>
>         <fo:table-cell   >
>             <fo:block  margin-left="0.5mm" font-size="11.0pt"
> font-family="Times">
>                 <xsl:value-of select="yearRecExp"></xsl:value-of>
>             </fo:block>
>         </fo:table-cell>
>         <fo:table-cell   >
>            <fo:block margin-left="0.5mm"  font-size="11.0pt"
> font-family="Times">
>                 <xsl:value-of select="discipline"></xsl:value-of>
>             </fo:block>
>         </fo:table-cell>
>          <fo:table-cell  >
>           <fo:block margin-left="0.5mm"  font-size="11.0pt"
> font-family="Times" >
>                 <xsl:value-of select="institutionCountry"></xsl:value-of>
>             </fo:block>
>         </fo:table-cell>
>       </fo:table-row>
>       </xsl:for-each></xsl:when>
>       <xsl:otherwise>
>         <fo:table-row   >
>           <fo:table-cell number-columns-spanned="4" >
>          <fo:block color="white" >
>             <xsl:text>data</xsl:text>
>          </fo:block>
>         </fo:table-cell>
>         </fo:table-row>
>       </xsl:otherwise>
>       </xsl:choose>
>     </fo:table-body>
>    </fo:table>
>
> now the 3 borders  have exactly the same code but under a zoom of 100%
> in adobe they don't render the same way ; the 3 border (the one in the
> left of the text : "institution country" ) appear ticker !
>
> what i'm doing wrong ?
>
> and thanks
>
>


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


Mime
View raw message