You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Kevin Pearcey (JIRA)" <ji...@apache.org> on 2014/10/03 15:30:34 UTC
[jira] [Updated] (PDFBOX-1648) FontBox can't load CMaps with no
spaces between tokens
[ https://issues.apache.org/jira/browse/PDFBOX-1648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kevin Pearcey updated PDFBOX-1648:
----------------------------------
Attachment: cmap.diff
Latest fix for CMapParser not using correct delimiter checks (as opposed to believing the CMap files are badly formatted and the code it perfect!)
> FontBox can't load CMaps with no spaces between tokens
> ------------------------------------------------------
>
> Key: PDFBOX-1648
> URL: https://issues.apache.org/jira/browse/PDFBOX-1648
> Project: PDFBox
> Issue Type: Improvement
> Components: FontBox
> Affects Versions: 1.7.0, 1.8.2
> Reporter: Max Gilead
> Priority: Minor
> Labels: patch, test
> Attachments: CMapNoWhitespace.txt, CMapWithWhitespace.txt, cmap-with-no-whitespace.patch, cmap.diff
>
>
> FontBox (tested versions 1.7.0 and 1.8.2) can't load CMap entries if they're not properly separated by whitespace making it problematic to extract the text from such PDFs. Test case and a proposed patch attached. The patch is tiny but in case it matters: it is in public domain, no credit necessary, please feel free to relicence it as you see fit.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)