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 2003/02/21 12:27:49 UTC

DO NOT REPLY [Bug 17277] New: - Multiple fo:page-sequence generates blank page between

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=17277>.
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=17277

Multiple fo:page-sequence generates blank page between

           Summary: Multiple fo:page-sequence generates blank page between
           Product: Fop
           Version: 0.20.5
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: page-master/layout
        AssignedTo: fop-dev@xml.apache.org
        ReportedBy: vicentesalvador@netscape.net


Just try tthe FO attached afterwards. It should produce 3 pages but is producing
5. Tested on 0.20.5rc2. Also here is the debug (look at the "[INFO] [2 (blank)]"
message.

The debug:
C:\develop\fop-0.20.5rc>fop -d gcomalbh.fo -pcl gcomalbh.pcl
[DEBUG] Input mode:
[DEBUG] FO
[DEBUG] fo input file: gcomalbh.fo
[DEBUG] Output mode:
[DEBUG] pcl
[DEBUG] output file: gcomalbh.pcl
[DEBUG] OPTIONS
[DEBUG] no user configuration file is used [default]
[DEBUG] debug mode on
[DEBUG] dump configuration
[DEBUG] quiet mode on
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] base directory: file:/C:/develop/fop-0.20.5rc/
[INFO] FOP 0.20.5rc
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[INFO] rendering areas to PCL
[INFO] [1]
[WARNING] Horizontal position out of bounds.
[DEBUG] Last page-sequence produced 1 pages.
[INFO] [2 (blank)]
[INFO] [1]
[WARNING] Horizontal position out of bounds.
[DEBUG] Last page-sequence produced 1 pages.
[INFO] [2 (blank)]
[INFO] [1]
[WARNING] Horizontal position out of bounds.
[DEBUG] Last page-sequence produced 1 pages.
[INFO] Parsing of document complete, stopping renderer
[INFO] writing out PCL
[DEBUG] Initial heap size: 880Kb
[DEBUG] Current heap size: 945Kb
[DEBUG] Total memory used: 65Kb
[DEBUG]   Memory use is indicative; no GC was performed
[DEBUG]   These figures should not be used comparatively
[DEBUG] Total time used: 450ms
[DEBUG] Pages rendered: 5
[DEBUG] Avg render time: 90ms/page


The FO:


<?xml version="1.0" ?>
<fo:root xmlns:xalan="http://xml.apache.org/xalan"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
	<fo:simple-page-master master-name="first" page-height="29.7cm"
page-width="21.0cm" margin-top="0.5cm" margin-bottom="0.5cm" margin-left="0.5cm"
margin-right="0.5cm">
		<fo:region-body margin-bottom="1cm" margin-top="8.76cm" />
		<fo:region-start extent="0.5cm" />
		<fo:region-before precedence="true" extent="8.76cm" />
		<fo:region-after extent="1cm" />
	</fo:simple-page-master>
	<fo:simple-page-master master-name="notes" page-height="29.7cm"
page-width="21.0cm" margin-top="0.5cm" margin-bottom="0.5cm" margin-left="0.5cm"
margin-right="0.5cm">
		<fo:region-body margin-bottom="1cm" margin-top="8.76cm" />
		<fo:region-start extent="0.5cm" />
		<fo:region-before precedence="true" extent="8.76cm" />
		<fo:region-after extent="1cm" />
	</fo:simple-page-master>
</fo:layout-master-set>

<fo:page-sequence master-reference="first" initial-page-number="1">
	<fo:static-content flow-name="xsl-region-after">
		<fo:block>Page <fo:page-number /> Sequence 1</fo:block>
	</fo:static-content>
	<fo:flow flow-name="xsl-region-body">
		<fo:block>BODY Sequence 1</fo:block>
	</fo:flow>
</fo:page-sequence>

<fo:page-sequence master-reference="first" initial-page-number="1">
	<fo:static-content flow-name="xsl-region-after">
		<fo:block>Page <fo:page-number /> Sequence 2</fo:block>
	</fo:static-content>
	<fo:flow flow-name="xsl-region-body">
		<fo:block>BODY Sequence 2</fo:block>
	</fo:flow>
</fo:page-sequence>

<fo:page-sequence master-reference="first" initial-page-number="1">
	<fo:static-content flow-name="xsl-region-after">
		<fo:block>Page <fo:page-number /> Sequence 3</fo:block>
	</fo:static-content>
	<fo:flow flow-name="xsl-region-body">
		<fo:block>BODY  Sequence 3</fo:block>
	</fo:flow>
</fo:page-sequence>
</fo:root>

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