Bug 693305 - gs does not recognize security handler revision 6
Summary: gs does not recognize security handler revision 6
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Interpreter (show other bugs)
Version: 9.06
Hardware: PC Linux
: P4 normal
Assignee: Ken Sharp
URL:
Keywords:
: 694441 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-08-29 08:15 UTC by rasta
Modified: 2014-04-09 07:06 UTC (History)
2 users (show)

See Also:
Customer:
Word Size: ---


Attachments
D4203_M_hlberger_Matrikel_Rechtswissenschaften.pdf (2.46 MB, application/pdf)
2012-09-04 18:55 UTC, Marcos H. Woehrmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rasta 2012-08-29 08:15:00 UTC
If you try to open the following file
https://fedora.e-book.fwf.ac.at/fedora/get/o:60/bdef:Content/download
in ghostscript 9.06 it will fail with:

#########

GPL Ghostscript 9.06 (2012-08-08)
Copyright (C) 2012 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
   **** This file uses an unknown standard security handler revision: 6
Error: /undefined in pdf_check_password
Operand stack:
   ()
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1894   1   3   %oparray_pop   1893   1   3   %oparray_pop   1877   1   3   %oparray_pop   --nostringval--   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   --nostringval--
Dictionary stack:
   --dict:1158/1684(ro)(G)--   --dict:1/20(G)--   --dict:82/200(L)--   --dict:82/200(L)--   --dict:109/127(ro)(G)--   --dict:293/300(ro)(G)--   --dict:21/31(L)--
Current allocation mode is local
GPL Ghostscript 9.06: Unrecoverable error, exit code 1

#########

the file can be opened in acrobat reader X (no password needed)
Comment 1 Marcos H. Woehrmann 2012-09-04 18:55:32 UTC
Created attachment 8903 [details]
D4203_M_hlberger_Matrikel_Rechtswissenschaften.pdf
Comment 2 Marcos H. Woehrmann 2012-09-04 18:56:11 UTC
I've confirmed that Ghostscript cannot read the attached file but that Acrobat Pro 10 and mu can.
Comment 3 Ken Sharp 2013-08-06 01:22:59 UTC
*** Bug 694441 has been marked as a duplicate of this bug. ***
Comment 4 Hin-Tak Leung 2013-12-21 18:05:12 UTC
I just encountered this problem - mupdf can read it, but gs cannot; Adobe Reader 9.5.5 said a newer version is needed; xpdf cannot read it either. Indeed it says pdf 1.7.

This is likely to become a more common problem. My pdf is the monthly statement of a rather common credit card from a major bank in UK. Last month's pdf was still okay, so it looks like the bank just switched. (Ken/Chris may be seeing it first hand soon...).
Comment 5 Ken Sharp 2014-04-09 07:06:59 UTC
Code has been added for this in commit c8673cb8209a9f294721fae7a1842fcd8940ecab

The revision 6 security handler is still not publicly available at this time, we are awaiting the published ISO 32000-2 specification which should contain it (due to be published in 2012....). The security handler is listed as 'extension level 8' and the most recent extension level document available is 3.

As a result we cannot guarantee that this code will work in all circumstances.