Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XSL-FO watermark

Reply
Thread Tools

XSL-FO watermark

 
 
Keith Davies
Guest
Posts: n/a
 
      09-26-2005
Hi All,

a friend wants to create a PDF (using XSL-FO) that contains a watermark
that covers the entire page.


<fo:block background-image='...'> surrounding the content of the flow
almost works, except that it covers *only* where there is content as
opposed to the entire page.

A common technique for achieving this goal is to put the watermark in
the header or footer, positioned such that it will fill the entire page.
How is this done in XSL-FO, and/or is there a better way?

The current attempt has

<foage-region extent='0in' overflow='visible' />

in the page master, then

<fo:static-content>
<fo:block>
<fo:external-graphic src='...' />
</fo:block>
</fo:static-content>

in the page-sequence (all things pointing to each other appropriately,
etc.).


I think I'm just missing something here, but can't see what it is.


Keith
--
Keith Davies "Always code as if the guy who ends up
http://www.velocityreviews.com/forums/(E-Mail Removed) maintaining your code is a psychopath
(E-Mail Removed) who knows where you live."
http://www.kjdavies.org/ -- Damian Conway
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[iText] template or watermark Ingo R. Homann Java 0 08-02-2005 02:27 PM
Adding a Watermark to an Image m3ckon ASP .Net 1 08-05-2004 01:06 PM
Watermark in background for Debug build David Slinn ASP .Net 1 06-27-2004 04:44 AM
Background image, fixed and resizeable, watermark. HELP. surjit Java 1 02-19-2004 08:32 PM
how could I add watermark to photoes in java ? j Java 1 11-18-2003 12:32 PM



Advertisments