You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Hewson (JIRA)" <ji...@apache.org> on 2014/09/18 21:50:35 UTC

[jira] [Resolved] (PDFBOX-2360) PDFont had methods removed

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

John Hewson resolved PDFBOX-2360.
---------------------------------
    Resolution: Invalid

These APIs have be redesigned in 2.0, the old APIs which were removed are dangerously broken. The structure of these APIs and the way they interact has fundamentally changed in 2.0, so meaningful backwards computability is not possible. The good news is that the 2.0 APIs operate at a much higher level and so you can replace large chunks of code with just a couple of new API calls.

> PDFont had methods removed
> --------------------------
>
>                 Key: PDFBOX-2360
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2360
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 2.0.0
>            Reporter: simon steiner
>
> Add back methods or provide a equivalent to pdfbox so it easier to upgrade to PDFBox 2
> PDFont
> public int getFirstChar()
> public int getLastChar()
> public Encoding getFontEncoding()
> public CMap getToUnicodeCMap()
> public String encode(byte[] c, int offset, int length) throws IOException
> PDCIDFont
> public long getDefaultWidth()
> Encoding
> public String getCharacter(int code) throws IOException
> CFFFont
> public Object getProperty(String name)
> public Map<String, byte[]> getCharStringsDict()
> public CFFEncoding getEncoding()
> CFFCharset
> public List<Entry> getEntries()
> CFFEncoding
> public List<Entry> getEntries()
> Cmap
> public String lookup( int code, int length )



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)