You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Tiago Mikhael Pastorello Freire <ti...@gmail.com> on 2006/05/03 21:07:31 UTC

n00b: scale page background to 100% page width and height

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?

thanks in advance,

Brazilian Joe

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


Re: n00b: scale page background to 100% page width and height

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
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