Mario:
I use the following template to put SVG "watermarks" on my pages (in 0.94
but it should work in 0.95):
<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:black;stroke-opacity:0.2;"><xsl:value-of
select="$watermarkText"/></svg:text>
</svg:g>
</svg:svg>
</fo:instream-foreign-object>
</fo:block>
</xsl:template>
I put this in an absolutely positioned block container:
<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>
It's not 100% what you want, but maybe this can give you a new avenue to
explore.
-Lou
"Mario Madunic" <[email protected]>
03/19/2010 01:24 PM
Please respond to
[email protected]
To
<[email protected]>
cc
Subject
SVG as background to page in 0.95
I was doing the following with FOP 0.94 while testing
<fo:region-body region-name="sectionBody_NI" background-image="bg.svg"
background-repeat="no-repeat" ../>
And it would appear as a bg on the page.
But in 0.95 that doesn't seem to work. How can I get an SVG as a
background to work in 0.95. One constraint is that the odd and even pages
in this case each have a different bg image.
Marijan (Mario) Madunic
Publishing Specialist
New Flyer Industries
--------------------------------------------------------------------
Please consider the environment before printing this e-mail.
CONFIDENTIALITY STATEMENT: This communication (and any and all
information or material transmitted with this communication) is
confidential, may be privileged and is intended only for the use of the
intended recipient. If you are not the intended recipient, any review,
retransmission, circulation, distribution, reproduction, conversion to
hard copy, copying or other use of this communication, information or
material is strictly prohibited and may be illegal. If you received this
communication in error or if it is forwarded to you without the express
authorization of New Flyer, please notify us immediately by telephone or
by return email and permanently delete the communication, information and
material from any computer, disk drive, diskette or other storage device
or media. Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]