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

7200Re: [XSL-FO] XSL-FO rendering Issue for PDF format

Expand Messages
  • yunchung hsu
    May 30, 2006
    • 0 Attachment
      I have similar problems in pdf files
      The template used is described next:

      <xsl:template match="uselayout">
      <fo:page-sequence initial-page-number="1" force-page-count="no-force" master-reference="{@name}">
      <xsl:apply-templates/>
      </fo:page-sequence>
      </xsl:template>

      The data file (XML file) created by application program does not have any extra data, but somehow blank page created occasionally.

      The blank page can happened in the middle of output streams and does not have to be the last page of the group of pages.

      When it happened, the previous page before the blank page "the last line in the document occupies the very last area of the page " seems to be always true.

      Is there something I can do to solve this nuissance problem in the report?
      Thanks,
      yun-chung Hsu


      kumar puppala <kpuppala@...> wrote:
      Thanks for the suggestion. I am already using that
      option in my page-sequence but it does not help. I
      guess there might be some implementation difference
      between PCL and PDF rendering which is causing this
      to happen only in PCL. Is anyone aware of any bugfix
      or any other property I can use to fix my problem?

      Thanks,
      Kumar Puppala


      --- Gerardo Contreras <spider_r18@...> wrote:

      > 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]
      >
      >
      >
      > ------------------------ Yahoo! Groups Sponsor
      > --------------------~-->
      > You can search right from your browser? It's easy
      > and it's free. See how.
      >
      http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/9rHolB/TM
      >
      --------------------------------------------------------------------~->
      >
      >
      >
      > Yahoo! Groups Links
      >
      >
      > XSL-FO-unsubscribe@yahoogroups.com
      >
      >
      >
      >
      >
      >


      __________________________________________________
      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-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.


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





      ---------------------------------
      Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone. Get Yahoo! Messenger with Voice

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