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

Some Linux readers fail to load the PDF because of a missmatch between the declared PDF version and the actual set of PDF features (1.4 and cross reference streams)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.5
    • None
    • renderer/pdf
    • None
    • Patch

    Description

      Some Linux readers fail loading the PDFs produced by FOP. These have the version 1.4 by default. The PDF contains cross reference streams, which are defined in PDF 1.5.

      The fix would be CrossReferenceStream to increment the version of the PDF document to 1.5.

      The JavaDoc from this class:

      A cross-reference stream, as described in Section 3.4.7 of the PDF 1.5 Reference.

      A fix in the constructor of {{CrossReferenceStream }}:

              document.setPDFVersion(Version.V1_5);
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            dc33 Dan Caprioara
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified