Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-5265

/Version /1.4 in newly generated PDFBox PDF

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.0.0 PDFBox
    • 3.0.0 PDFBox
    • Writing
    • None

    Description

      Strictly speaking not even a bug, merely a nuisance, but it might indicate an underlying issue in version handling.

      When generating a HelloWorld.pdf as in this stack overflow question, the resulting PDF starts like this:

      %PDF-1.6
      %öäüß
      1 0 obj
      <<
      /Type /Catalog
      /Version /1.4
      /Pages 2 0 R
      >> 
      

      This Version value 1.4 makes no sense in a freshly created PDF with a %PDF-1.6 header and will be ignored by a standard conform PDF processor.

      So it should not be there to start with.

      Its presence might indicate, though, that internally PDFBox has a non-appropriate idea which PDF version it is wanting to communicate to a processor. If so, that should also be cleared up.

      Attachments

        1. HelloWorld.pdf
          0.7 kB
          Michael Klink

        Issue Links

          Activity

            People

              tilman Tilman Hausherr
              mkl Michael Klink
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: