Ecrion Software Inc. Homepage
Forum Home Forum Home > XF Rendering Server > XSL-FO
  New Posts New Posts RSS Feed: Problem with watermark's
  FAQ FAQ  Forum Search   Register Register  Login Login

Problem with watermark's

 Post Reply Post Reply
Author
Message / View First Unread Post
marcomarin View Drop Down
Newbie
Newbie
Avatar

Joined: 11 Apr 2011
Location: México
Posts: 1
Post Options Post Options   Quote marcomarin Quote  Post ReplyReply Direct Link To This Post Topic: Problem with watermark's
    Posted: 11 Apr 2011 at 1:38pm
We have a problem when we try to use text or images as watermarks, they only show's in the first page of the document, we saw the examples and use the same code for "layout-master-set" but with the same results.

we use a block-container with the image in the "xsl-region-body"


----------------------------
CODE
----------------------------
    <fo:block-container position="fixed"
                      width="356mm" height="216mm"
                      top="-23mm"
                      left="-8mm"
                      >
    <fo:block>
    <fo:external-graphic width="356mm" height="216mm" src="url(image.jpg)"/>
    </fo:block>
   </fo:block-container>

thanks in advance!

Back to Top
gabig View Drop Down
Admin Group
Admin Group


Joined: 06 Aug 2008
Posts: 144
Post Options Post Options   Quote gabig Quote  Post ReplyReply Direct Link To This Post Posted: 12 Apr 2011 at 7:16am
Hi Marco,

The side regions (before, after, start, end) are repeated on each page. You use fo:static-content instead of fo:flow to map content to them.
The reason you're only seeing the watermark on the first page is that you're placing it in the body (fo:flow mapped to fo:region-body), which flows across the pages without repeating any of the contents.
Make sure you have an fo:region-before defined in your page master:
<fo:region-before region-name="xsl-region-before" ... />

Then in the fo:page-sequence add the following code before fo:flow:
<fo:static-content flow-name="xsl-region-before">
<fo:block>
<!-- paste your fo:block-container code -->
</fo:block>
</fo:static-content>

Regards,
Gabi
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.69
Copyright ©2001-2010 Web Wiz

This page was generated in 0.469 seconds.