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 Henrik Holle <he...@holle.net> on 2003/02/02 16:03:31 UTC

Vertical alignmnet of external graphics

Hi,


I want to vertical center an external graphics in an fo:block and i have
no idea how i can do this.

My code:

<fo:flow flow-name="xsl-region-body">  
     
<fo:block> 
     <fo:external-graphic src="C:\Documents and
Settings\holle\Desktop\debug.fo\checkbox.svg"/>  
     <fo:inline font-family="Helvetica" font-size="7pt">TEST</fo:inline>
     </fo:block>


   
    </fo:flow> <!-- closes the flow element-->
  </fo:page-sequence> 
</fo:root>


Using this xsl:fo document, my external-graphics is always some pts
above the text.



The image:



<?xml version="1.0" standalone="no"?>

<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"

	"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">

<svg width="7" height="7">
	<rect x="0" y="0" width="7" height="7"
	
style="fill:rgb(255,255,255);stroke:rgb(0,0,0);stroke-width:0.7"/>
</svg>



Thanks!



Best regards


Henrik holle


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


Re: Vertical alignmnet of external graphics

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Henrik Holle wrote:
> I want to vertical center an external graphics in an fo:block and i have
> no idea how i can do this.

The spec provides a vertical-align property, however,
this is not implemented in any existing release of FOP.
It is implemented in the redesiged code, unfortunately,
this code still lacks quite a few other features.

J.Pietschmann


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