Fix for 687117, Error: /typecheck in --get-- when attempt to view pdf document V1.4

Alex Cherepanov <[email protected]>
Newsgroups gmane.comp.printing.ghostscript.patches
Message-ID <[email protected]>
Following the PDF spec ignore "/Encrypt null" entry in the trailer.

_______________________________________________
gs-code-review mailing list
[email protected]
http://www.ghostscript.com/mailman/listinfo/gs-code-review
pdf_main.ps.diff (text/plain, 503 B)
Index: gs/lib/pdf_main.ps
===================================================================
RCS file: /cvs/ghostscript/gs/lib/pdf_main.ps,v
retrieving revision 1.80
diff -b -u -r1.80 pdf_main.ps
--- gs/lib/pdf_main.ps	26 Oct 2003 00:52:28 -0000	1.80
+++ gs/lib/pdf_main.ps	31 Oct 2003 03:51:03 -0000
@@ -364,7 +364,8 @@
        } if
      } loop
    } ifelse
-   Trailer /Encrypt known {
+   Trailer /Encrypt knownoget {
+     pop
      pdf_process_Encrypt	% signal error
    } if
    currentdict end
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.