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 D Landskroon <dp...@csc.com> on 2010/02/01 23:58:24 UTC
Watermarks On PDF that contains shading in table rows
Hi,
We're creating a PDF that contains a table that uses background shading on
the alternate rows. As part of the same PDF we also have to generate a
watermark as the background.
We now have a problem in that the alternate row shading clashes with the
watermark and basically the watermark disappears on the rows that are
shaded.
Is there any way around this? Does FOP support this or not? Just wondering
if the XSLT is coded correctly or its just something that FOP does not
support.
Appreciate any help that can be offerred.
Kind Regards,
Dawn
--
View this message in context: http://old.nabble.com/Watermarks-On-PDF-that-contains-shading-in-table-rows-tp27412909p27412909.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: Watermarks On PDF that contains shading in table rows
Posted by Vincent Hennebert <vh...@gmail.com>.
Hi Dawn,
A solution to your problem suddenly came to my mind. In case this is
still of interest to you:
D Landskroon wrote:
> Hi,
>
> We're creating a PDF that contains a table that uses background shading on
> the alternate rows. As part of the same PDF we also have to generate a
> watermark as the background.
>
> We now have a problem in that the alternate row shading clashes with the
> watermark and basically the watermark disappears on the rows that are
> shaded.
>
> Is there any way around this? Does FOP support this or not? Just wondering
> if the XSLT is coded correctly or its just something that FOP does not
> support.
One way to deal with that is to specify a level of transparency on the
background colour of the rows, but to my knowledge XSL-FO doesn’t offer
this possibility. However, you can create an SVG image made of basically
one rectangle that has a transparent fill, as SVG gives you full
flexibility on that matter.
Then you just have to set this image as the background-image of the
table-row. You don’t have to worry about the dimensions of the image and
can set its size to the dimensions of the page, as fo:table-row will
clip it accordingly.
> Appreciate any help that can be offerred.
>
> Kind Regards,
> Dawn
HTH,
Vincent
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org