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

Access to metadata keys in the PD model

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.3.1
    • Component/s: PDModel
    • Labels:
      None
    • Environment:
      All

      Description

      Currently 1.2.0 I don't think it's possible to get a document's metadata keys from the PD model.
      It is possible to get the metadata keys by calling PDDocumentInformation.getDictionary().keySet() and calling getName() on the COSName objects returned.

      But that means having to know about the COSDictionary and COSName objects i.e. the lower-level COS model.
      It would be nice to be able to retrieve the metadata keys directly from the PD model.

      I'm about to add a patch that does this. The patch will also add a new test class.

        Attachments

          Activity

            People

            • Assignee:
              jukkaz Jukka Zitting
              Reporter:
              neilm Neil McErlean
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified