Bug 691636

Summary: pdf file with distiller security settings is rendered incorrectly by ghostscript
Product: Ghostscript Reporter: Heiko <heiko.honrath>
Component: PDF InterpreterAssignee: Alex Cherepanov <alex>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P4    
Version: 0.00   
Hardware: PC   
OS: Windows XP   
Customer: Word Size: ---
Attachments: A zip with all mentioned files.
patch

Description Heiko 2010-09-21 15:00:28 UTC
Created attachment 6741 [details]
A zip with all mentioned files.

A pdf file distilled with Distiller security settings is rendered incorrectly by ghostscript.

The same file is rendered correctly when it is distilled without security.

I verified with Distiller 6.0.1 and Distiller 8.1.0 and with 128 bit and 40 bit encryption.

I tested ghostscript 8.63, 8.70, 8.71 and 9.00 (all on Windows XP).

The secured pdf file is rendered correctly by Adobe Reader 8 and 9 and also by SumatraPDF, Foxit Reader, Mupdf and PDF Xchange Viewer and even Evince and KDE 4/Okular (all on Windows XP).

The password for the secured pdf file is "secret" (without the double quotes).

Please see attached ZIP file with:

folder.joboptions            - Adobe Distiller settings

security_settings.png        - Adobe Distiller security settings

Stellenanzeige.ps            - the original PostScript file

Stellenanzeige_secured.pdf   - pdf file created by Distiller with security on

Stellenanzeige_secured.png   - how the pdf file is rendered

Stellenanzeige_unsecured.pdf - pdf file created by Distiller with security off
Comment 1 Alex Cherepanov 2010-10-05 13:59:03 UTC
Created attachment 6780 [details]
patch

Add missing decoding of #nn escape to encrypted PDF reader. Besides fixing the
bug sample file, this patch also corrects a colorant name in IA3Z0440.pdf on
psdcmyk device.
Comment 2 Alex Cherepanov 2010-10-05 13:59:58 UTC
The patch has been committed as a rev. 11756.