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

Add option to not add ID to trailer

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

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.0.21
    • None
    • Writing
    • None

    Description

      We're using PDFBox to modify metadata of an existing PDF file. The input PDF file has no ID in its trailer which is fine because it's optional.

      When reading the input PDF file with PDFBox and then writing it again it adds an ID to the trailer. This is not desired because

      a) the input file does not have an ID and the input should only be minimally modified.
      b) it changes the meaning from not having an identity to having an identity and being the first version of the document.

      An option to prevent PDFBox from creating an artificial misleading ID would be very helpful.

      Attachments

        Activity

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

          People

            Unassigned Unassigned
            fluidsonic Marc Knaup

            Dates

              Created:
              Updated:

              Slack

                Issue deployment