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

Clean up PDStructureTreeRoot.getRoleMap() and putRoleMap()

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.13
    • 4.0.0
    • PDModel
    • 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

            Unassigned Unassigned
            tilman Tilman Hausherr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: