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

/Version /1.4 in newly generated PDFBox PDF

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • 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

        Issue Links

        Activity

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

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment