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

RE: Generate two files

From: Vladimir Rodimyuk <VladimirR@ukrinvent.com>
Date: Thu, 30 Aug 2007 18:11:32 +0300
To: axdmoraes <alexmoraes@gmail.com>, "www-xsl-fo@w3.org" <www-xsl-fo@w3.org>
Message-ID: <C50378BB9C267D4796753862ED9AE1A33FD8FEDAFB@UI-OPTERON.ukrinvent.com>


I don't think that using of additional PDF will help you.
BTW multi-page PDF is inserted into the flow as 1-paged one, so you will have to produce as many PDF as you have chapters. Also you will have to use absolute positioned block-containers to put content behind the "watermark". So this approach is suitable if you are dealing with static layout only.

I think it's much easier to produce separate page-sequence for each chapter and prepare specific header for it using XSL (fo:retrieve-marker is not working inside svg element).

So it will be something like this:
<!-- in the context of chapter node -->
<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"
                        <xsl:value-of select="@tool"/>
                        <xsl:value-of select="@pn"/>
                        <xsl:value-of select="@type"/>

Volodymyr Rodymyuk

> -----Original Message-----
> From: www-xsl-fo-request@w3.org [mailto:www-xsl-fo-request@w3.org] On
> Behalf Of axdmoraes
> Sent: Wednesday, August 29, 2007 8:28 PM
> To: www-xsl-fo@w3.org
> Subject: RE: Generate two files

> This watermark is dynamic and it should change on every element chapter.
>  I can generate a separete pdf file with another xsl:fo file and then put
> this pdf like background of the fo:block. It works but IŽll have to make
> more steps. I was trying to generate an svg image in the same xsl:fo, like
> you do in your example, and put it in the fo:block background. Not in the
> region-before because the image is dynamic. I tryed something but it
> didnŽt
> work.
> If you have any idea.
> Thanks for now...
> Alexandre
Received on Thursday, 30 August 2007 15:17:27 UTC

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