W3C home > Mailing lists > Public > www-xsl-fo@w3.org > August 2007

RE: Generate two files

From: Vladimir Rodimyuk <VladimirR@ukrinvent.com>
Date: Wed, 29 Aug 2007 14:03:19 +0300
To: axdmoraes <alexmoraes@gmail.com>, "www-xsl-fo@w3.org" <www-xsl-fo@w3.org>
Message-ID: <C50378BB9C267D4796753862ED9AE1A33FD7A8A704@UI-OPTERON.ukrinvent.com>
You can put your SVG image in block-container with position="absolute" in some static region (e.g. xsl-region-before).

<fo:static-content flow-name="xsl-region-before">
    <fo:block-container absolute-position="absolute"
        top="4.25in" left="0.5in" width="7.5in"
            <fo:instream-foreign-object width="100%" height="100%"
                content-width="scale-to-fit" content-height="scale-to-fit"
                <svg:svg width="7.5in" height="2.5in" viewBox="0 0 200 50">
                    <svg:rect fill="#AFA" fill-opacity=".2" x="0" y="0"
                        height="50" rx="5" ry="5"/>
                    <svg:text style="font-family:Helvetica; font-size:10;
                        text-anchor="middle" fill="#06148E"
                        fill-opacity=".3" x="100" y="25"
                        >Watermark image</svg:text>

Maybe it will be interesting for you to see similar request and whole thread:

Volodymyr Rodymyuk

> -----Original Message-----
> From: www-xsl-fo-request@w3.org [mailto:www-xsl-fo-request@w3.org] On
> Behalf Of axdmoraes
>     other way is if the attribute background-image has an address of an
> svg
> image generated inside the stylesheet but it didnīt work until now. But
> iīm
> trying.
> axdmoraes wrote:
> >
> > And I have a xsl:fo to format this file. But I need to show the chapter
> > attributes:tool, pn and type like a watermark behind the text. Then I
> need
> > to generate a pdf file with this information and put it like a
> background
> > in the first pdf.
> >
> > Like the picture.

Received on Wednesday, 29 August 2007 11:10:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:10:06 UTC