You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2014/08/29 00:15:11 UTC
[jira] [Created] (PDFBOX-2296) Wrong stream length used for
truetype font
Tilman Hausherr created PDFBOX-2296:
---------------------------------------
Summary: Wrong stream length used for truetype font
Key: PDFBOX-2296
URL: https://issues.apache.org/jira/browse/PDFBOX-2296
Project: PDFBox
Issue Type: Bug
Components: Parsing
Affects Versions: 2.0.0
Reporter: Tilman Hausherr
The file of PDFBOX-2048 has a wrong font length, it is 4412 in the PDF but it is really about 27350. This wrong length is used to read the font and this results in further trouble.
The problem is that the wrong length is passed to createFilteredStream() instead of just calling it without parameters. In cosStream.doDecode() unFilteredStream = filteredStream (there is a FIXME there!!!), and in doDecode(COSName filterName, int filterIndex) unFilteredStream.getLength() is used, which returns the expectedLength.
--
This message was sent by Atlassian JIRA
(v6.2#6252)