Daniel:
I do something like this with SVG to show the status of the document (draft, final, etc.). However, transparency is not implemented yet (at least not in 0.20.3) so I have to keep the SVG very unobtrusive and colorless.
Not sure if this helps much, but here is some XSL code:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template name="showWatermark">
<xsl:param name="watermarkText"></xsl:param>
<fo:block text-align="center">
<fo:instream-foreign-object xmlns:svg="http://www.w3.org/2000/svg">
<svg:svg width="285" height="70">
<svg:g transform="rotate(-5)">
<svg:text x="10" y="60" style="font-family:Courier;font-size:40;font-weight:normal;stroke-width:0.5;fill:none;stroke:lightgray;stroke-opacity:0.75;">
<xsl:value-of select="$watermarkText"/>
</svg:text>
</svg:g>
</svg:svg>
</fo:instream-foreign-object>
</fo:block>
</xsl:template>
<xsl:template name="showSmallWatermark">
<xsl:param name="watermarkText"></xsl:param>
<fo:block text-align="center">
<fo:instream-foreign-object xmlns:svg="http://www.w3.org/2000/svg">
<svg:svg width="285" height="70">
<svg:g transform="rotate(-3)">
<svg:text x="30" y="10" style="font-family:Courier;font-size:30;font-weight:normal;stroke-width:0.5;fill:none;stroke:lightgray;">
<xsl:value-of select="$watermarkText"/>
</svg:text>
</svg:g>
</svg:svg>
</fo:instream-foreign-object>
</fo:block>
</xsl:template>
</xsl:stylesheet>
Then, to call it I do something like:
<fo:block-container position="absolute" top="10mm" left="1mm" height="70mm" width="230mm">
<xsl:call-template name="showWatermark">
<xsl:with-param name="watermarkText"><xsl:apply-templates select="statusText"/></xsl:with-param>
</xsl:call-template>
</fo:block-container>
-Lou
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LOG-NET, Inc.
The Logistics Network Management System
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
230 Half Mile Road
Third Floor
Red Bank, NJ 07701
PH: 732-758-6800
FAX: 732-747-7497
http://www.LOG-NET.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CONFIDENTIAL & PRIVILEGED
Unless otherwise indicated or if obvious from the nature of the content, the information contained herein is privileged and confidential information/work product. The communication is intended for the use of the individual or entity named above. If the reader of this transmission is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone (732-758-6800) or by electronic mail ([EMAIL PROTECTED]), and destroy any copies, electronic, paper or otherwise, which you may have of this communication. Thank you.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Daniel Brown <[EMAIL PROTECTED]> wrote on 10/04/2005 17:11:55:
>
> How can I create a watermark? I've read the documentation/FAQ about
> watermarks. I need an Image which will fit being the center of the
> text on the page in the body and continue to remain centered on all
> the following pages in that sequence.
>
> Thank you,
> Daniel
- Re: watermark Louis . Masters
- Re: watermark Daniel Brown
- Re: watermark Louis . Masters
- Re: watermark Daniel Brown
- Re: watermark J.Pietschmann
