xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremias Maerki <...@jeremias-maerki.ch>
Subject Re: n00b: scale page background to 100% page width and height
Date Fri, 05 May 2006 06:18:31 GMT
XSL-FO provides no means to scale a background-image. The image must be
as big as you need it to be. You can try to create an SVG graphic that
has the right size and scale the JPEG image inside SVG.

On 03.05.2006 21:07:31 Tiago Mikhael Pastorello Freire wrote:
> Hi, 
> I am getting started to FOP and I am using a very simple testcase:
> -----------
> <?xml version="1.0" encoding="utf-8"?>
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
> 	<fo:layout-master-set>
> 		<fo:simple-page-master master-name="A4" page-width="210mm"
> 							   page-height="297mm">
> 			<fo:region-body region-name="PageBody" margin="10mm" 
> background-image="bg.jpg"/>
> 			
> 		</fo:simple-page-master>
> 	</fo:layout-master-set>
> 	<fo:page-sequence master-reference="A4">
> 		<fo:flow flow-name="PageBody">
> 			<fo:block>Hello World</fo:block>
> 		</fo:flow>
> 	</fo:page-sequence>
> </fo:root>
> ------------
> And I want to scale the background image to the ful page height and width.
> How can i accomplish this?


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message