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 ingo peter <in...@ip-software.de> on 2009/09/12 20:58:41 UTC

horizontal alignment of external-graphic

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