upgrade to fop 0.92 - image problem (no wrap)
Posted: Fri Apr 28, 2006 1:14 am
I've juust upgraded to FOP 0.92 to take advantage of the keep-together support, but I've encountered a new problem.
First problem was image scaling/size, that was fixed from information at this link
next problem is that while images used to just be put on (wrap to) the next line when there to many to fit in the page, now they just run off the page. I haven't been able to cure this one.
My code for the xsl:
First problem was image scaling/size, that was fixed from information at this link
next problem is that while images used to just be put on (wrap to) the next line when there to many to fit in the page, now they just run off the page. I haven't been able to cure this one.
My code for the xsl:
Code: Select all
<fo:block margin-left="2em" margin-right="2em">
<xsl:for-each select="pb/pic">
<xsl:choose>
<xsl:when test="@orientation='p'">
<fo:external-graphic width="3cm" height="4cm" content-height="scale-to-fit" content-width="scale-to-fit"
padding="0.3em"
src="url('./pics/t_{@src}')'"/>
<fo:leader leader-length="0.75em"
leader-pattern="space"/>
</xsl:when>
<xsl:otherwise>
<fo:external-graphic width="4cm" height="3cm" content-height="scale-to-fit" content-width="scale-to-fit"
padding="0.3em"
src="url('./pics/t_{@src}')"/>
<fo:leader leader-length="0.75em"
leader-pattern="space"/>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</fo:block>