xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pascal SANCHO <pascal.san...@takoma.fr>
Subject Re: Missing images when many images are displayed
Date Fri, 29 May 2009 09:53:37 GMT

With FOP 0.20.5, many reasons can give such behaviour:
 - erroneous vertical remaining space calculation in body page, witch 
causes some content to be dropped below the bottom of page
 - image height larger than body height (in such case, infinite loop can 
 - available space too short for the image
 - etc.
In addition, this version is not totally conformant with the XSL 

Since you are "pretty new to XSL:FO", the better thing to do IMHO is to 
use FOP 0.9x, since its behaviour is more predictible.

Another tip: you should provide a XSL-FO file (not XSLT), this is more 
helpfull for list contributors...


jmorra a écrit :
> I have an XML document which contains information that points to many images,
> and I'm trying to display them using the fo:external-graphic method.  When
> only a few images are present it works fine.  However, when many images are
> present (enough that they span multiple pages) then images appear to be
> "lost," which means they are simply not printed in the PDF.  When I use the
> following code, the images appear staggered, and there is a lot of white
> space, however, all the images are printed correctly.
> <fo:table-cell padding="3mm">
>     <xsl:apply-templates select="attr[@tag='0040A730']/item" mode="content">
>         <xsl:with-param name="pattern">Image</xsl:with-param>
>     </xsl:apply-templates>
> </fo:table-cell>
> <xsl:template match="item" mode="content">
>     <xsl:param name="pattern"/>
>     <xsl:if test="$pattern='Image'">
>         <fo:external-graphic width="8cm">
>             <xsl:attribute
> name="src">url(https://localhost:8443/wado?requestType=WADO&amp;studyUID=1&amp;seriesUID=1&amp;objectUID=<xsl:value-of
> select="attr[@tag='00081199']/item/attr[@tag='00081155']"/>)</xsl:attribute>
>         </fo:external-graphic>
>     </xsl:if>
> </xsl:template>
> The first part of the code is wrapped inside of a fo:table.  However, if I
> replace the first part with the following
> <fo:table-cell padding="3mm">
>     <fo:block>
>         <xsl:apply-templates select="attr[@tag='0040A730']/item"
> mode="content">
>             <xsl:with-param name="pattern">Image</xsl:with-param>
>         </xsl:apply-templates>
>     <'fo:block>
> </fo:table-cell>
> Then the images look much better on the page (no white space), but some
> images are just missing.
> I'm pretty new to XSL:FO, but I've been trying to figure this one out for a
> while, and would greatly appreciate any input.  I'm using version 0.20.5,
> and am locked into that version.

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

View raw message