Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-979

FOP 0.20.5 AWTRenderer: Sometimes rendering fails in the middle of a table with no error message

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 0.20.5
    • None
    • renderer/awt
    • None
    • Operating System: Windows XP
      Platform: PC
    • 33801

    Description

      My french team and I work on a Java project and we plan to embed FOP
      0.20.5 for the needed print reports.

      We experience a problem when we are using the AWT renderer with
      documents that contain tables. Sometimes, a page is "cut" in the
      middle of a table and its header (fo:region-before) is missing.

      As far as we have investigated we can say that:

      • We have neither abnormal output message, nor exception stack
        trace.
      • We only experience this problem with the AWT renderer. Using
        the PCL renderer works fine (but it lacks multibyte characters
        support that is critical for some of our translated releases).
      • We only experience this problem on a true printer (we have tried
        several models from HP and OKI). We never reproduced the
        problem using a fake printer such as Adobe Acrobat Distiller.
      • With the FO document (bug.fo) that is attached, we experience
        the problem 20% of the time when launching the printing from our
        application (we tried both java.awt.print and javax.print APIs).

      When using the `fop.bat' script, we experience the problem 100%
      of the time with the same FO document.

      fop.bat -fo bug.fo -print

      We tried JDK 1.4.1_07 and 1.4.2_07.

      • So far, 100% of the time it happened, tables were involved in
        the document.
      • Using the same FO document and the same FOP command line several
        times may result in having the bug occuring on different pages
        of the document. The printing does not fail systematically at
        the same point of the document.

      I have attached:

      You can download http://www.guillaumeponce.org/fop/bug.fo.zip

      The reference FO document we have used to investigate this
      problem (zipped).

      You can also download http://www.guillaumeponce.org/fop/bug.pdf

      It is 12 Mb large. It is an actual 8 pages long paper print
      that has been scanned. You can see that the problemI
      describe occured on page 7 out of 8.

      Attachments

        1. bug.fo.zip
          5 kB
          Guillaume Ponce

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            fop-dev@xmlgraphics.apache.org fop-dev
            fop@guillaumeponce.org Guillaume Ponce
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment