Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 5.0.6_P01
-
Fix Version/s: 5.1
-
Component/s: Core/Parsing
-
Labels:None
-
Environment:any
-
Support Case References:Support Case #12907 - https://icesoft.my.salesforce.com/5007000000dugM6
Description
The PDF in question has streams that are encoded using Crypt filters. There are three images on page two (10 0 obj, 5 0 obj, and 6 0 obj (smask of 5 0 obj)) which fail to decode correctly. I have yet to find the source of these issue but it would appear that ChunkInputStream.fillBufferFromInputStream() is failing.
The rest of the document renders ok minus the absense of a header image on pages 5 and greated. Furhter investigation is need to try and determine the cause of this issue.
The rest of the document renders ok minus the absense of a header image on pages 5 and greated. Furhter investigation is need to try and determine the cause of this issue.
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
The PDF in question is encrypted and uses crypt filters to encrypt the streams. The missing images is realated to a corner case where some images have a decodeParam dictionary which is also used by crypt filters. So when the images in question (the ones that aren't loaded) decodeParam is passed to the crypt filter setup no filter name is found and the default is never assigned resulting in the empty or unencryptable stream.
I've touched up the code and all the images with the decodeParam no load correctly.