xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Bowditch <bowditch_ch...@hotmail.com>
Subject Re: java ClassCastException on external-graphic
Date Wed, 04 May 2005 12:25:25 GMT
Jeroen van der Vegt wrote:

> Hi,
> 
> I'm trying to position an image in a PDF file which is generated using 
> fop 0.20.5. Adding an image to static-content is no problem, but when I 
> try to add it in a block-container, fop crashes. This is the relevant 
> fop code:
> 
> <xsl:template name="foo">
>    <fo:block-container top="-10mm" left="120mm" position="absolute">
>      <fo:external-graphic height="30mm" src="url(images/bar.jpg)"/>
>    </fo:block-container>
> </xsl:template>

FOP 0.20.5 has only limited support for block-container. The limitations are 
described on the compliance page:

http://xml.apache.org/fop/compliance.html#fo-object-block-container

I see that you have not included width and height on the block-container. I 
believe that is the problem.

<snip/>

Chris


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