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

Clean up PDStructureTreeRoot.getRoleMap() and putRoleMap()

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.13
    • Fix Version/s: 3.0.0 PDFBox
    • Component/s: PDModel
    • Labels:
      None

      Description

      I was trying to merge the structure tree role maps (PDFBOX-4415). PDStructureTreeRoot.getRoleMap() and putRoleMap() are difficult to use:

      • getRoleMap() returns different value type than setRoleMap
      • the value Object is a COSString and the map is backed by the dictionary, unless the map is empty, then it is not.
      • doing "put" lands in COSDictionaryMap and one must use a COSString value
      • doing "get" brings a String
      • All this is not documented but it's unusable anyway.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tilman Tilman Hausherr
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: