I use absolutely positioned block-containers containing external-graphics for some images and for drawing surrounding borders etc.
You can position this anywhere on the page.

You could place this in one of the other regions - but you would need to check the z-order works OK and doesn't overlap your content.
e.g.
       <fo:static-content flow-name="xsl-region-before">
<fo:block-container position='absolute' top='1cm' left='0.0cm' height='19.2cm' width='{$PAGEWID_CM}cm' border='1px solid silver'>
                    </fo:block-container>
<fo:block-container position='absolute' top='1.5cm' left='{$PAGEWID_CM - 1.5}cm' height='2.7cm' width='1.7cm' border='none'>
                            <fo:block>
<fo:external-graphic src='url({$SERVER}/DRE/images/img_2.jpg)' height='1cm' content-height='1cm'/>
                            </fo:block>
                    </fo:block-container>
            </fo:static-content>
I think - from past experiments with FOP 0.02.5 - you may find that a background image is the only one that will be behind your content.
FOP 0.20.5 doesn't support the zorder attribute (or whatever it is)
and overlays regions in a different priority thatn XEP (and probably other FO engines).

Also - the top LH coords for absolute postioning seem to differ for FOP 0.20.5 and XEP. I can't remember exactly how - but almost like - one uses the page and one uses the enclosing region (which can mean that your image doesn't appear unless you add a large negative X displacement).


HTH

Mike

Tim Dylla wrote:

Hi all,

 since I'm brand new to the List, please be patient if I say somethin
stupid/don't provide necessary Informations/etc. I'll do my very best :).

For this Problem I plundered the Mailing list Archives, but no clue so far:

I want to put a full-page sized background image on any page of my
pdf-Document. In addition I need to place a header and a footer, also
with graphical content. I do this with the background-image property on
the body-region, and with static content in the -before and the -after
regions. The Problem is, that I have to set a top- and bottom-margin of
the body-region, in order to place the body between header and footer,
without getting in formatting-trouble on automatic page-breaks.
But now, the background image of the body-region, which should cover the
whole page (including the background of header and footer), start at the
margin of the body-region, which is somehow logical, but not wanted in
this case.
How can I adjust the body-regions position/extend without giving up my
full size background image?
Unfortunately I can't split the Image into 3 parts, which I could place
into all three regions, as the graphical content varies.
I tried also to put the bg-image into the header-region and set the
extent of it to page-height. Apparently, the body-region gets painted
first, before header and footer, so both cover the body-content... grrr


Has anybody a hint for a poor student? Except buying the
Antennahouse-FO-Parser... :)


Best,

        Tim


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Message Scanned by ClamAV on datalucid.com


Message Scanned by ClamAV on datalucid.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to