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

PDFParser should set "direct" property in COSBase if this object is direct

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.6.0
    • Fix Version/s: None
    • Component/s: Parsing

      Description

      PDFParser during PDF parsing does not update COSBase#direct property - it always return false when read. Especially this issue manifests for dictionary objects when PDF is saved (either regularly or incrementally) - all dictionary objects in saved PDF, if they do not have COSBase#direct property set or are not specifically treated by COSWriter (like XObject or Resources) are written as indirect objects. Though PDF specification allows dictionary objects to be indirect, but not for /Extensions dictionary in document catalog: "The extensions dictionary, all developer extensions dictionary entries in the extensions dictionary, as well as their entries, all shall be direct objects (i.e., this information shall be nested directly within the catalog dictionary with no indirect objects used)." (see ISO 32000-1: 7.12 Extensions Dictionary).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                abyss Petras
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: