You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (Jira)" <ji...@apache.org> on 2021/01/01 14:01:00 UTC
[jira] [Updated] (PDFBOX-4414) Clean up
PDStructureTreeRoot.getRoleMap() and putRoleMap()
[ https://issues.apache.org/jira/browse/PDFBOX-4414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler updated PDFBOX-4414:
---------------------------------------
Fix Version/s: (was: 3.0.0 PDFBox)
4.0.0
> Clean up PDStructureTreeRoot.getRoleMap() and putRoleMap()
> ----------------------------------------------------------
>
> Key: PDFBOX-4414
> URL: https://issues.apache.org/jira/browse/PDFBOX-4414
> Project: PDFBox
> Issue Type: Task
> Components: PDModel
> Affects Versions: 2.0.13
> Reporter: Tilman Hausherr
> Priority: Major
> Fix For: 4.0.0
>
>
> 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org