Closed Bug 848866 Opened 11 years ago Closed 11 years ago

PDF.js: Images using an indexed color space are not rendered correctly when the PDF is encrypted

Categories

(Firefox :: PDF Viewer, defect)

19 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 22

People

(Reporter: thierry.fortin, Assigned: RyanVM)

References

Details

(Whiteboard: [pdfjs-f-fixed-upstream])

Attachments

(3 files, 1 obsolete file)

Attached file unencrypted.pdf
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0
Build ID: 20130226172142

Steps to reproduce:

Images using an indexed color space are not rendered correctly when the PDF is encrypted
See the attached examples:
- unencrypted.pdf contains one image (originally a GIF) with an indexed color space and one image (JPEG) using a regular DeviceRGB color space; both images are displayed correctly
- encrypted.pdf is the same document, but encrypted (using PDFtk 1.44); in the image using an indexed color spaces, the colors are completely wrong
Attached file unencrypted.pdf (obsolete) —
Attached file encrypted.pdf
Attachment #722358 - Attachment is obsolete: true
Attachment #722361 - Attachment description: Encrypted_vs_encrypted.png → Encrypted_vs_unencrypted.png
Attachment #722361 - Attachment filename: Encrypted_vs_encrypted.png → Encrypted_vs_unencrypted.png
Component: Untriaged → PDF Viewer
This will be fixed in the next pdf.js update (https://bugzilla.mozilla.org/show_bug.cgi?id=848641)
Depends on: 848641
Whiteboard: [pdfjs-f-fixed-upstream]
Fixed by bug 848641.
https://hg.mozilla.org/mozilla-central/rev/8c5d7b67d20d
Assignee: nobody → ryanvm
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 22
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: