Subject: Re: [xsl] Re: [FO] Background image on whole page From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Thu, 10 Jan 2008 07:20:08 -0600 |
>> Each region can have its own background, so you can use >> background-image= on <region-body>. >> >> To get "the whole page" you will need to have the body region extend >> to the page dimensions, which is not really desirable for top and >> bottom margins. > > Yes, I noticed. > >> An alternative is to parcel out a whole page background into bits >> that are set as the backgrounds of the respective perimeter regions >> and body region. > > <sigh> I was hoping you wouldn't say that. Oh well. I guess I will chalk > that up as something else XSLFO can't do.
Well you can also use an absolutely positioned block-container with a background-image; for example:
<fo:page-sequence master-reference="page"> <fo:flow flow-name="xsl-region-body"> <fo:block-container absolute-position="absolute" top="-2cm" left="-3cm" width="21cm" height="29.7cm" background-image="path/to/the/image.png"> <fo:block/> </fo:block-container>
-- Comprehensive in-depth XSLT2/XSL-FO1.1 classes: Austin TX,Jan-2008 World-wide corporate, govt. & user group XML, XSL and UBL training RSS feeds: publicly-available developer resources and training G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re: [FO] Background image on , Vincent Hennebert | Thread | [xsl] Re: [FO] Background image on , Vincent Hennebert |
RE: [xsl] Transforming XML to CSV, Hofman, Peter | Date | Re: [xsl] Transforming XML to CSV, Jesper Tverskov |
Month |