pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tilman Hausherr (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PDFBOX-4414) Clean up PDStructureTreeRoot.getRoleMap() and putRoleMap()
Date Thu, 27 Dec 2018 19:19:00 GMT

     [ https://issues.apache.org/jira/browse/PDFBOX-4414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tilman Hausherr updated PDFBOX-4414:
------------------------------------
    Description: 
I was trying to merge the structure tree role maps (PDFBOX-XXXX). 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.

  was:
I was trying to merge the structure tree role maps (PDFBOX-XXXX). 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.


> Clean up PDStructureTreeRoot.getRoleMap() and putRoleMap()
> ----------------------------------------------------------
>
>                 Key: PDFBOX-4414
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4414
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 2.0.13
>            Reporter: Tilman Hausherr
>            Priority: Major
>             Fix For: 3.0.0 PDFBox
>
>
> I was trying to merge the structure tree role maps (PDFBOX-XXXX). 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
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org


Mime
View raw message