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: horizontal alignment of external-graphic
Date Mon, 14 Sep 2009 08:22:25 GMT
Would you please describe in a bit more detail what you want to
accomplish? When I run your example with a PDF of my own as image, FOP
does with the image exactly what the FO tells it to. I assume you're
expecting something else, so I need a bit more information to be able to
tell you what you need to change.

On 12.09.2009 21:01:29 ingo peter wrote:
> hi,
> i want to set a externel graphic in a box.
> the vertical-aligment is ok but the horizontal-alignment makes trouble...
> 
> the code: (fop 0.95 / fop-pdf-images/ ...)
> 
> <?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="test"
> 		page-height="29.7cm"
> 		page-width="21cm"
> 		margin-top="0cm"
> 		margin-bottom="0cm"
> 		margin-left="0cm"
> 		margin-right="0cm">
> 		<fo:region-body margin-top="0cm" margin-bottom="0cm"/>
> 		<fo:region-before extent="0cm"/>
> 		<fo:region-after extent="0cm"/>
> 		</fo:simple-page-master>
> 	</fo:layout-master-set>
> 	<fo:page-sequence master-reference="test">
> 	<fo:flow flow-name="xsl-region-body">
> 		<fo:block-container height="5cm" width="5cm" top="5cm" left="5cm" position="absolute"
border="1pt solid black"
> 		 overflow="hidden" display-align="center">
> 		<fo:block text-align="center">
> 			<fo:external-graphic src="url('/tmp/picture.pdf')"/>
> 		</fo:block>
> 		</fo:block-container>
> 	</fo:flow>
> 	</fo:page-sequence>
> </fo:root>
> 
> whats wrong...?
> mfg
> -ip-



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