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 2010/06/03 13:31:08 UTC

[jira] Resolved: (PDFBOX-295) CMapParser "cidrange" support

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

Andreas Lehmkühler resolved PDFBOX-295.
---------------------------------------

    Fix Version/s: 1.2.0
       Resolution: Fixed

With version 950969 I've improved the CMAP-parser to read mappings from begincidrange.

> CMapParser "cidrange" support
> -----------------------------
>
>                 Key: PDFBOX-295
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-295
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>            Priority: Minor
>             Fix For: 1.2.0
>
>
> [imported from SourceForge]
> http://sourceforge.net/tracker/index.php?group_id=149227&atid=773646&aid=1769918
> Originally submitted by yt_okamoto on 2007-08-08 03:20.
> Hi Ben,
> FontBox couldn't parse some cmap files which contain "cidrange" property (ex. 90ms-RKSJ-H) correctly. Extract text from PDF which contain such encoding by PDFBox, it will fail as follows.
> java.io.IOException: Unknown encoding for '90ms-RKSJ-H'
>  at org.pdfbox.encoding.EncodingManager.getEncoding(EncodingManager.java:82)
>  at org.pdfbox.pdmodel.font.PDFont.getEncoding(PDFont.java:618)
>  at org.pdfbox.pdmodel.font.PDFont.encode(PDFont.java:471)
>  at org.pdfbox.util.PDFStreamEngine.showString(PDFStreamEngine.java:325)
>  at org.pdfbox.util.operator.ShowText.process(ShowText.java:64)
>  at org.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:452)
>  at org.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:215)
>  at org.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:174)
>  at org.pdfbox.util.PDFTextStripper.processPage(PDFTextStripper.java:336)
>  at org.pdfbox.util.PDFTextStripper.processPages(PDFTextStripper.java:259)
>  at org.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:216)
>  at org.pdfbox.util.PDFTextStripper.getText(PDFTextStripper.java:149)
>  at TempTestMain.main(TempTestMain.java:56)
> Regards,
> Yuta

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.