Re: [xep-support] how can I create a watermark in my output?

From: Dan Ochs <dan.ochs@gmail.com>
Date: Tue Nov 11 2008 - 07:21:03 PST

Turns out I wasn't paying attention.

I started with the sample from
http://xep.xattic.com/xep/testsuite/features/bgimage.fo and modified
it locally to have a background reference in the flow, but the image
does not appear:
<fo:flow flow-name="xsl-region-body" background-image="url(draft.svg)"
background-attachment="fixed" background-repeat="no-repeat"
background-position-horizontal="center"
background-position-vertical="center"
rx:background-content-height="100%"
rx:background-content-width="100%">

If I add the same attributes to the first fo:block under fo:flow, and
that fo:block wraps all of the content in fo:flow, I see the
background image on multiple pages.

The question is how can I get the image to appear over the entire page
like a watermark, regardless of how much content is on it? (For
instance, on the last page of my page sequence, I only see part of the
"T" in the word DRAFT because the fo:block region ends near the top of
the page.) Is there a way to do this? Would I have to modify the XEP
intermediate format XML?

thanks, dan

On Tue, Nov 11, 2008 at 9:39 AM, G. Ken Holman
<gkholman@cranesoftwrights.com> wrote:
> Have you tried setting the background image on the body region?
>
> I hope this helps.
>
> . . . . . . . . . Ken
>
> At 2008-11-11 09:01 -0500, Dan Ochs wrote:
>>
>> Hi, I'm trying to create a watermark image on my pdf output. I have
>> tried wrapping all of my output in a block with a background image,
>> and the image shows up on the first page, but not on any of the
>> subsequent pages. Is there an easy way to get this to repeat on every
>> page? I noticed in the latest release of xep there is a watermark
>> extension, but I don't see any examples of it and am unfamiliar with
>> the xep output format.
>>
>> I just want each page to have a gray "DRAFT" text (hopefully in SVG)
>> that runs diagonally across the page.
>>
>> any help is appreciated.
>>
>> thanks, dan
>
>
> --
> Upcoming XSLT/XSL-FO hands-on courses: Wellington, NZ 2009-01
> Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
> Video sample lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg
> Video course overview: http://www.youtube.com/watch?v=VTiodiij6gE
> G. Ken Holman mailto:gkholman@CraneSoftwrights.com
> Crane Softwrights Ltd. http://www.CraneSoftwrights.com/f/
> Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/f/bc
> Legal business disclaimers: http://www.CraneSoftwrights.com/legal
>
> -------------------
> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
> in the body of the message to majordomo@renderx.com from the address
> you are subscribed from.
> (*) By using the Service, you expressly agree to these Terms of Service
> http://www.renderx.com/terms-of-service.html
>
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Tue Nov 11 07:54:15 2008

This archive was generated by hypermail 2.1.8 : Tue Nov 11 2008 - 07:54:16 PST