You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Philip Helger (JIRA)" <ji...@apache.org> on 2014/04/03 09:09:15 UTC

[jira] [Commented] (PDFBOX-2011) Please extend base class "Encoding" with 2 methods to access global name2char and char2name maps

    [ https://issues.apache.org/jira/browse/PDFBOX-2011?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13958585#comment-13958585 ] 

Philip Helger commented on PDFBOX-2011:
---------------------------------------

These methods would be helpful to really determine what named characters are present overall, without reading the glyph lists manually. In case a font /Differences array is necessary, this could be helpful.

> Please extend base class "Encoding" with 2 methods to access global name2char and char2name maps
> ------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-2011
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2011
>             Project: PDFBox
>          Issue Type: Wish
>          Components: PDModel
>    Affects Versions: 1.8.4, 2.0.0
>            Reporter: Philip Helger
>
> Hi!
> It would be kind if you could extend the Encoding base class with the following 2 methods so that external access to the static maps is easier:
>  public static Map <String, String> getCharacterToNameMap () {
>     return Collections.unmodifiableMap (CHARACTER_TO_NAME);
>   }
>   public static Map <String, String> getNameToCharacterMap () {
>     return Collections.unmodifiableMap (NAME_TO_CHARACTER);
>   }
> Thanks, Philip



--
This message was sent by Atlassian JIRA
(v6.2#6252)