You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2002/12/20 12:11:32 UTC
DO NOT REPLY [Bug 15564] New: -
extra blank page in rendered pdf files
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=15564>.
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=15564
extra blank page in rendered pdf files
Summary: extra blank page in rendered pdf files
Product: Fop
Version: 0.20.4
Platform: PC
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: pdf renderer
AssignedTo: fop-dev@xml.apache.org
ReportedBy: andrea.nironi@email.it
I think I've found a bug in the fop library.
I' using fop 0.20.4 with an xsl file containing this part of code:
----------------------------------------
<xsl:template match="/">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="LibroProtocollo">
page-width="35cm"
page-height="18cm"
margin-top="1.0cm"
margin-bottom="1.0cm">
<fo:region-body margin-top="0.55in" margin-
bottom="0.55in" margin-left="0.15in" margin-right="0.5in"/>
<fo:region-before extent="0.5in"/>
<fo:region-after extent="0.5in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="LibroProtocollo">
<fo:flow flow-name="xsl-region-body">
<xsl:apply-templates
select="...ZZ../ResultData/LibroProtocollo/PagineLibro/PaginaLibro"/>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
<xsl:template
match="...ZZ.../ResultData/LibroProtocollo/PagineLibro/PaginaLibro">
<fo:block>
<fo:block text-align="center" font-size="8pt" font-
family="Times Roman">
<xsl:value-of select="../../Intestazione"/></fo:block>
<fo:block> </fo:block>
<xsl:call-template name="header"/>
<xsl:apply-templates select="Protocolli"/>
</fo:block>
</xsl:template>
<xsl:template match="Protocolli">
<fo:block break-after="page">
<xsl:for-each select="Protocollo">
<xsl:call-template name="item"/>
</xsl:for-each>
<xsl:call-template name="footer"/>
</fo:block>
</xsl:template>
----------------------------------------
Ok. In the xml file, I have a "Protocolli" element, with many "PaginaLibro"
and "Protocolli" subelements. The genereted pdf file is ok, but the fop
produces an annoying blank page at the end of the document. It's a <fo:block
break-after="page"> issue, I suppose...
I've searched in bugzilla-fop, but no-one seems to have recognize it... if you
can't reproduce it, notify it to me at andrea.nironi@email.it and I will send
you the complete xml and xsl files.
Excuse for my very poor english and thanks for your precious work.
Regards, Andrea
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org