Details
Description
The file of PDFBOX-2048 has a wrong encoded font length, it is 4412 in the PDF but it is really about 27350. This wrong length is used to read the encoded font stream and this results in further trouble (EOF).
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.
Attachments
Attachments
Issue Links
- is related to
-
PDFBOX-2674 Remove two unused methods from COSStream
- Closed
- relates to
-
PDFBOX-2016 Stream parsing still incorrect if length value is wrong
- Closed
-
PDFBOX-2079 Extra new line characters extracted in 1.8.5 for embedded files leading to ZipFile exception in Java 1.6
- Closed