Loading ...
Sorry, an error occurred while loading the content.

7198Re: [XSL-FO] XSL-FO rendering Issue for PCL format

Expand Messages
  • Gerardo Contreras
    May 25, 2006
    • 0 Attachment
      Hello Kumar.
      Add force-page-count="no-force" to your <fo:page-sequence .......>
      declaration.....

      this should elimate the anoying last blank page.

      Hope this help.
      Bye
      kumar puppala <kpuppala@...> wrote: Hello All,
      I am trying to render an fo file using Apache FOP.
      The problem I am encountering is with PCL format. When
      the document is rendered in dual-column and when the
      last line in the document occupies the very last area
      of the page ( lets say page 4), Apache FOP renders the
      document perfectly in PDF (gives me the document in 4
      pages) but when rendering the same document in PCL
      format, it adds an extra blank page to the document.
      Have anyone encountered this problem and is there a
      fix for this? I am using fop 0.20.5.

      If you are interested in knowing how my page layouts
      are defined, here is the snippet.

      <fo:layout-master-set><fo:simple-page-master
      master-name="first" page-height="11in"
      page-width="8.5in" margin-top=".5in"
      margin-bottom=".5in" margin-left=".9in"
      margin-right=".9in"><fo:region-before
      region-name="header-first" extent=".75in"
      />

      <fo:region-body margin-bottom=".5in"
      margin-top=".75in" column-count="2"
      padding=".25in"/><fo:region-after region-name=
      "footer-first" extent=".5in"/></fo:simple-page-master>

      <fo:simple-page-master master-name="rest"
      page-height="11in" page-width="8.5in"
      margin-top=".5in" margin-bottom=".5in" m
      argin-left=".9in"
      margin-right=".9in"><fo:region-before
      region-name="header-rest"
      extent=".75in"/><fo:region-body margin
      -bottom=".5in" margin-top=".75in" column-count="2"
      padding=".25in"/>
      <fo:region-after region-name="footer-rest"
      extent=".5in"/></fo:simple-page-master>

      <fo:simple-page-master
      master-name="cover-end-page-first" page-height="11in"
      page-width="8.5in" margin-top=".5in" margin
      -bottom=".5in" margin-left=".9in"
      margin-right=".9in"><fo:region-body column-count="1"
      margin-top=".25in" margin-bottom=
      ".25in"/></fo:simple-page-master>

      <fo:simple-page-master
      master-name="cover-end-page-rest" page-height="11in"
      page-width="8.5in" margin-top=".5in" margin-
      bottom=".5in" margin-left=".9in"
      margin-right=".9in"><fo:region-body column-count="1"
      margin-top=".25in" margin-bottom="
      .25in"/><fo:region-before extent=".25in"/>
      <fo:region-after
      extent=".25in"/></fo:simple-page-master><fo:page-sequence-master
      master-name="cover-end-sequence"><fo:s
      ingle-page-master-reference
      master-reference="cover-end-page-first"/>

      <fo:repeatable-page-master-reference
      master-reference="cover-end-page-rest"/></fo:page-sequence-master>

      <fo:page-sequence-master master-name="document">

      <fo:repeatable-page-master-alternatives><fo:conditional-page-master-reference
      page-position="first" master-reference="fi
      rst"/><fo:conditional-page-master-reference
      page-position="rest"
      master-reference="rest"/></fo:repeatable-page-master-al
      ternatives></fo:page-sequence-master>
      </fo:layout-master-set>



      Thanks,
      Kumar Puppala

      __________________________________________________
      Do You Yahoo!?
      Tired of spam? Yahoo! Mail has the best spam protection around
      http://mail.yahoo.com


      SPONSORED LINKS
      Xml xsl Xsl Xsl fo Xsl tutorial

      ---------------------------------
      YAHOO! GROUPS LINKS


      Visit your group "XSL-FO" on the web.

      To unsubscribe from this group, send an email to:
      XSL-FO-unsubscribe@yahoogroups.com

      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


      ---------------------------------





      ---------------------------------
      Do you Yahoo!?
      Get on board. You're invited to try the new Yahoo! Mail Beta.

      [Non-text portions of this message have been removed]
    • Show all 6 messages in this topic