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

Add option to not add ID to trailer

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0.21
    • Fix Version/s: None
    • Component/s: Writing
    • Labels:
      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

            People

            • Assignee:
              Unassigned
              Reporter:
              fluidsonic Marc Knaup
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: