You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Arkady Zalkowitsch (JIRA)" <ji...@apache.org> on 2015/10/02 18:37:26 UTC
[jira] [Created] (PDFBOX-3004) PDF fulltext index fails.
Arkady Zalkowitsch created PDFBOX-3004:
------------------------------------------
Summary: PDF fulltext index fails.
Key: PDFBOX-3004
URL: https://issues.apache.org/jira/browse/PDFBOX-3004
Project: PDFBox
Issue Type: Bug
Reporter: Arkady Zalkowitsch
PDF fulltext index fails when font dictionary in there contains one entry for the font Helvetica and an entry for Encoding whose value does not represent a font at all.
The PDF Object in PDF looks like this:
obj = {
"/Fields": [ 12 0 R ],
"/DA": "/Helvetica 0 Tf 0 g",
"/DR": {
"/Font": {
"/Helvetica": "11 0 R",
"/Encoding": {
"/PDFDocEncoding": "10 0 R"
}
}
"/NeedAppearances": true
}
PDFBox tries to parse that "font" called Encoding and fails doing so. but PDResources.getFonts() only logs the resulting exception:
try {
newFont = PDFontFactory.createFont( (COSDictionary)font );
} catch (IOException exception) {
LOG.error("error while creating a font", exception);
}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org