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 Chanaka Amarasekara <ch...@ifs.lk> on 2004/02/26 13:13:22 UTC

Solution to extra blank pages when you add page breaks

Hi,

I found a way of solving the problem, where FOP adds extra blank pages when
you add a page break. Simple remove the break-after="page" or
break-before="page" from the fo:table or fo:table-row tag and add the
following condition to it.

BREAK-AFTER
<xsl:if test="position() != last()"><xsl:attribute
name="break-after">page</xsl:attribute></xsl:if>

BREAK-BEFORE
<xsl:if test="position() != 1"><xsl:attribute
name="break-before">page</xsl:attribute></xsl:if>.

EG:
<fo:table-row element-id="authchk_163">
   <xsl:if test="position() != last()"><xsl:attribute
name="break-after">page</xsl:attribute></xsl:if>

Regards,
Chanaka


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