Hi,

Are you sure? as the same effect does not seem to occur when using the
seperate option on border-collapse.

See the attached bug.xsl and compare with the previous one. In the new
case there are 2 separate lines 0.1mm each while in the original
sample there where collapsed lines 0.2 mm wide.

I am now using the separate work arround as it will solve my problem.
Although now I get to eddit some 300 pages of xslt to solve the side
effects of the border width changes. Got to love legacy enterprise
software :D

I will still spend some time looking into the fop code, but this
weekend showed that might be above my skill level ;)

Thanks,
Jerven

On 12/17/07, Jeremias Maerki <[EMAIL PROTECTED]> wrote:
> No, that's not the problem. The cell background is painted and then cell
> borders are painted next (i.e. "over" them). The problem is rather
> subpixel effects. Lines can become smaller than one device pixel and can
> therefore disappear (worst case). At any rate, FOP makes the lines
> exactly as wide as you specify them. The negative effect occurs at
> rendering time in the viewer.
>
> I went looking into the PDF spec again (the general topic has come up
> before) and this time I found something. There's chapter 6.5.4
> "Automatic Stroke Adjustment" (in PDF 1.4) which could be used to
> help counteract such effects. Maybe someone wants to experiment with the
> "SA" state entry. Patches are welcome.
>
> On 14.12.2007 17:16:10 Pascal Sancho wrote:
> > Hi,
> >
> > After some checks, this happens because cells borders are drawn before 
> > cells background.
> > As a workaround, you can use the background-color property on deeper table 
> > element (from fo:table to fo:table-row).
> >
> > HTH,
> >
> > Pascal
> >
> > > -----Message d'origine-----
> > > De : Jerven Bolleman [mailto:[EMAIL PROTECTED]
> > > Envoyé : vendredi 14 décembre 2007 16:23
> > > À : [email protected]
> > > Objet : Re: fo:table border thickness
> > >
> > > Dear Fop Users and Developers,
> > >
> > > First of all, thank you for all your effort in providing fantastic
> > > software that really helps people.
> > >
> > > I am having similar problem as the original writer.
> > >
> > > Unfortunately, we were migrating from Fop 0.20.5 to 0.9*. And one of
> > > our major reports is no longer working the way we expected.
> > >
> > > Basically lines sometimes disappear between colored (gray)
> > > table-cells. This did not happen when using fop 0.20 to generate the
> > > pdf.
> > > While the observation is true that the lines have the correct width
> > > (seen once zooming in or printing), they are no longer drawn by adobe
> > > acrobat.
> > >
> > > I can send the xslt on request as they are 143 pages of style sheet.
> > > But I have a minimal sample. Attached, if there is interest in the
> > > resulting
> > > pdf's in 0.20 and 0.94 then I am happy to provide them.
> > >
> > > The workaround using border-collapse="separate" provides even more
> > > problems in adobe.
> > >
> > > The specific version is 0.94 for FOP and 7.0.8 for acrobat reader on
> > > Windows. Although it also occurs with the free Sumatra gpl viewer.
> > >
> > > Does anyone have any ideas?
> > >
> > > Jerven
> > >
> > >
> > > --
> > > Jerven Bolleman
> > > [EMAIL PROTECTED]
>
>
> Jeremias Maerki
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Jerven Bolleman
[EMAIL PROTECTED]
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
  <fo:layout-master-set>
    <fo:simple-page-master master-name="default-page" page-height="29.6cm"
                           page-width="21cm" margin-left="30mm"
                           margin-right="5mm" margin-top="15mm"
                           margin-bottom="15mm">
      <fo:region-body margin-top="2mm" margin-bottom="2mm"/>
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:page-sequence master-reference="default-page" initial-page-number="1"
                    format="1">
    <!-- DOCUMENT CONTENT -->
    <fo:flow flow-name="xsl-region-body">
      <fo:table border-width="0.1mm" border-top-style="solid"
                border-collapse="separate" table-layout="fixed" width="100%">
        <fo:table-column column-width="60mm"/>
        <fo:table-column column-width="4.5mm"/>
        <fo:table-column column-width="4.5mm"/>
        <fo:table-column column-width="4.5mm"/>
        <fo:table-column column-width="4.5mm"/>
        <fo:table-column column-width="4.5mm"/>
        <fo:table-column column-width="4.5mm"/>
        <fo:table-column column-width="4.5mm"/>
        <fo:table-column column-width="4.5mm"/>
        <fo:table-column column-width="4.5mm"/>
        <fo:table-column column-width="4.5mm"/>
        <fo:table-column column-width="4.5mm"/>
        <fo:table-column column-width="4.5mm"/>
        <fo:table-column column-width="4.5mm"/>
        <fo:table-column column-width="4.5mm"/>
        <fo:table-column column-width="4.5mm"/>
        <fo:table-column column-width="4.5mm"/>
        <fo:table-column column-width="4.5mm"/>
        <fo:table-column column-width="4.5mm"/>
        <fo:table-column column-width="18mm"/>
        <fo:table-body>
          <fo:table-row>
            <fo:table-cell border-bottom-style="solid" border-top-style="solid"
                           border-width="0.1mm">
              <fo:block>12. Where are the lines</fo:block>
            </fo:table-cell>
            <fo:table-cell text-align="center" border="solid black 0.1mm"
                           number-columns-spanned="2"
                           background-color="#cccccc">
              <fo:block/>
            </fo:table-cell>
            <fo:table-cell text-align="center" border="solid black 0.1mm"
                           number-columns-spanned="2"
                           background-color="#cccccc">
              <fo:block/>
            </fo:table-cell>
            <fo:table-cell text-align="center" border="solid black 0.1mm"
                           number-columns-spanned="2"
                           background-color="#cccccc">
              <fo:block/>
            </fo:table-cell>
            <fo:table-cell text-align="center" border="solid black 0.1mm"
                           number-columns-spanned="2"
                           background-color="#cccccc">
              <fo:block/>
            </fo:table-cell>
            <fo:table-cell text-align="center" border="solid black 0.1mm"
                           number-columns-spanned="2"
                           background-color="#cccccc">
              <fo:block/>
            </fo:table-cell>
            <fo:table-cell text-align="center" border="solid black 0.1mm"
                           number-columns-spanned="2"
                           background-color="#cccccc">
              <fo:block/>
            </fo:table-cell>
            <fo:table-cell text-align="center" border="solid black 0.1mm"
                           number-columns-spanned="2"
                           background-color="#cccccc">
              <fo:block/>
            </fo:table-cell>
            <fo:table-cell text-align="center" border="solid black 0.1mm"
                           number-columns-spanned="2"
                           background-color="#cccccc">
              <fo:block/>
            </fo:table-cell>
            <fo:table-cell text-align="center" border="solid black 0.1mm"
                           number-columns-spanned="2">
              <fo:block/>
            </fo:table-cell>
            <fo:table-cell>
              <fo:block font-size="5pt"></fo:block>
            </fo:table-cell>
          </fo:table-row>
          <fo:table-row>
            <fo:table-cell border-bottom-style="solid" border-top-style="solid"
                           border-width="0.1mm">
              <fo:block>13. Where are the lines</fo:block>
            </fo:table-cell>
            <fo:table-cell text-align="center" border="solid black 0.1mm"
                           number-columns-spanned="2"
                           background-color="#cccccc">
              <fo:block/>
            </fo:table-cell>
            <fo:table-cell text-align="center" border="solid black 0.1mm"
                           number-columns-spanned="2"
                           background-color="#cccccc">
              <fo:block/>
            </fo:table-cell>
            <fo:table-cell text-align="center" border="solid black 0.1mm"
                           number-columns-spanned="2"
                           background-color="#cccccc">
              <fo:block/>
            </fo:table-cell>
            <fo:table-cell text-align="center" border="solid black 0.1mm"
                           number-columns-spanned="2"
                           background-color="#cccccc">
              <fo:block/>
            </fo:table-cell>
            <fo:table-cell text-align="center" border="solid black 0.1mm"
                           number-columns-spanned="2"
                           background-color="#cccccc">
              <fo:block/>
            </fo:table-cell>
            <fo:table-cell text-align="center" border="solid black 0.1mm"
                           number-columns-spanned="2"
                           background-color="#cccccc">
              <fo:block/>
            </fo:table-cell>
            <fo:table-cell text-align="center" border="solid black 0.1mm"
                           number-columns-spanned="2"
                           background-color="#cccccc">
              <fo:block/>
            </fo:table-cell>
            <fo:table-cell text-align="center" border="solid black 0.1mm"
                           number-columns-spanned="2"
                           background-color="#cccccc">
              <fo:block/>
            </fo:table-cell>
            <fo:table-cell text-align="center" border="solid black 0.1mm"
                           number-columns-spanned="2">
              <fo:block/>
            </fo:table-cell>
            <fo:table-cell>
              <fo:block font-size="5pt"></fo:block>
            </fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>
    </fo:flow>
  </fo:page-sequence>
</fo:root>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to