You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Jukka Zitting (JIRA)" <ji...@apache.org> on 2010/06/21 16:53:23 UTC
[jira] Resolved: (PDFBOX-641) PDNameTreeNode: Keys in Names shall
be sorted
[ https://issues.apache.org/jira/browse/PDFBOX-641?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jukka Zitting resolved PDFBOX-641.
----------------------------------
Assignee: Jukka Zitting
Resolution: Fixed
I committed a slightly modified fix in revision 956609. Instead of changing the argument and return types to SortedMaps, which seemed like a somewhat heavy API change, I kept the explicit ordering of names in setNames() and modified getNames() to return a LinkedHashMap that maintains the order of the underlying name array.
> PDNameTreeNode: Keys in Names shall be sorted
> ---------------------------------------------
>
> Key: PDFBOX-641
> URL: https://issues.apache.org/jira/browse/PDFBOX-641
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 1.1.0
> Reporter: Johannes Koch
> Assignee: Jukka Zitting
> Priority: Minor
> Fix For: 1.2.0
>
> Attachments: PDFBox-641_patch_00.txt
>
>
> According to PDF 32000-1:2008 page 89, paragraph following table 36, the keys in Names shall be sorted. So the parameter for setNames(Map) and the return value for getNames() should better be a SortedMap.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.