DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15048>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15048 Unwanted page break after image linked by external-graphic in region body Summary: Unwanted page break after image linked by external- graphic in region body Product: Fop Version: 0.20.3 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: pdf renderer AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I want to generate a pdf with a list of images. I suppose them to be shown in the pdf one by one. And, if the two images are size small enough, they can be placed in 1 page together. However, I find that no matter how small the images are, there must be a page break for each image. The sample code is like this: : <fo:block page-break-before="avoid" page-break-after="avoid"> <xsl:for-each select="ADVICE/IMAGE"> <fo:wrapper> <fo:external-graphic> <xsl:attribute name="src"><xsl:value-of select="."/></xsl:attribute> </fo:external-graphic> </fo:wrapper> </xsl:for-each> </fo:block> : Then, I try to put another text block after the image block like this: <fo:block page-break-before="avoid" page-break-after="avoid"> <xsl:for-each select="ADVICE/IMAGE"> <fo:wrapper> <fo:external-graphic> <xsl:attribute name="src"><xsl:value-of select="."/></xsl:attribute> </fo:external-graphic> </fo:wrapper> <fo:wrapper>Testing data line</fo:wrapper> </xsl:for-each> </fo:block> <fo:block>Another testing data line</fo:block> The first text 'Testing data line' can be shown just next to the each image sucessfully in the same page. However, the last text 'Another testing data line' cannot be shown in the same page with the last image, even the last image is so small. A page break is forced to appear just after the image. I have tried to use table cell for the display like this, <fo:table> <fo:table-column column-width="20cm"/> <fo:table-body> <xsl:for-each select="ADVICE/IMAGE"> <fo:table-row> <fo:table-cell display-align="center"> <fo:block text-align="center"> <fo:external-graphic display-align="center" text-align="center"> <xsl:attribute name="src"><xsl:value-of select="."/></xsl:attribute> </fo:external-graphic> </fo:block> </fo:table-cell> </fo:table-row> </xsl:for-each> </fo:table-body> </fo:table> But the result is still the same. On the other hand, I just put the same coding in the static content as region- before, it can be shown successfully without page break (I think it is still to region-before cannot be page break). Is it the internal problem of FOP? Anything we can do to help? SL --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]