xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ingo peter <ingo.pe...@ip-software.de>
Subject horizontal alignment of external-graphic
Date Sat, 12 Sep 2009 19:01:29 GMT
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-


---------------------------------------------------------------------
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