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 David Beck <da...@ureach.com> on 2004/04/16 23:00:11 UTC

Re: Re: [list_fop_user] Re: RE: add watermark to generated PDF using FOP

Matt,

We just tried the following:

<fo:layout-master-set>
    		<fo:simple-page-master margin-right="1.5cm"
margin-left="1.5cm" margin-bottom="3cm" margin-top="1.5cm"
page-width="20cm" page-height="28cm" master-name="left">

fo:region-body margin-top="1cm" margin-bottom="1cm">
   <xsl:attribute name="background-image">	      	
 <xsl:text>file:///c:/image/watermark_draft.gif</xsl:text>
   </xsl:attribute>
</fo:region-body>
...

Part of the Draft image appeared(not the whole image), but the
position is not right. There are two of the same draft images
and they are right at the bottom of each page and seperate from
the pdf content. Something wrong with the position. I changed
the width and height and no big difference. Do you have any idea
about it?

thanks,


Dave 



________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag


---- On Fri, 16 Apr 2004, Matt Healy (mjh@cs.rit.edu) wrote:

> At 03:34 PM 16-04-04, it's rumored that David Beck said:
> >Would you please tell me how to refer to an external image
using the 
> >following snip codes given the image watermark_draft.gif
which is stored 
> >int the directory "C:/image/" ?
> 
> I think you should be OK if you replace the "region-body"
definition with 
> something like the following:
> 
> [snip]
>          <fo:region-body margin-top="1cm" margin-bottom="1cm">
>                <xsl:attribute name="background-image">
>                     
<xsl:text>file:///c:/image/watermark_draft.gif</xsl:text>
>                  </xsl:attribute>
>          </fo:region-body>
> [snip]
> 
> -mjh
> --
> Matthew J. Healy
> Department of Computer Science, RIT
> 102 Lomb Memorial Drive, Rochester, NY  14623
> mailto:mjh@cs.rit.edu
> http://www.cs.rit.edu/~mjh
> Voice:  (585) 248-3425
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org