components/ghostscript/patches/02-4776996.patch
author gowtham thommandra - Sun Microsystems - Bangalore India <Gowtham.Thommandra@Sun.COM>
Tue, 05 Jun 2012 13:13:11 +0530
changeset 852 0a7f3f0c7b6f
parent 345 61b29cf8b717
permissions -rw-r--r--
7152414 ghostscript corrupts pages 2 and on when printing to HP printers
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
345
61b29cf8b717 6975488 Problem with utility/ghostscript
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents: 178
diff changeset
     1
--- ghostscript-8.64/Resource/Init/pdf_sec.ps.orig	Mon Jul  5 16:51:46 2010
61b29cf8b717 6975488 Problem with utility/ghostscript
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents: 178
diff changeset
     2
+++ ghostscript-8.64/Resource/Init/pdf_sec.ps	Fri Oct 15 03:50:03 2010
61b29cf8b717 6975488 Problem with utility/ghostscript
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents: 178
diff changeset
     3
@@ -472,12 +472,12 @@
61b29cf8b717 6975488 Problem with utility/ghostscript
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents: 178
diff changeset
     4
     } ifelse
61b29cf8b717 6975488 Problem with utility/ghostscript
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents: 178
diff changeset
     5
   } ifelse
61b29cf8b717 6975488 Problem with utility/ghostscript
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents: 178
diff changeset
     6
 
61b29cf8b717 6975488 Problem with utility/ghostscript
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents: 178
diff changeset
     7
-%   Trailer /Encrypt oget /P oget 4 and 0 eq #? and
61b29cf8b717 6975488 Problem with utility/ghostscript
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents: 178
diff changeset
     8
-%    { (   ****This owner of this file has requested you do not print it.\n)
61b29cf8b717 6975488 Problem with utility/ghostscript
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents: 178
diff changeset
     9
-%      pdfformaterror printProducer
61b29cf8b717 6975488 Problem with utility/ghostscript
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents: 178
diff changeset
    10
-%      /pdf_process_Encrypt cvx /invalidfileaccess signalerror
61b29cf8b717 6975488 Problem with utility/ghostscript
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents: 178
diff changeset
    11
-%    }
61b29cf8b717 6975488 Problem with utility/ghostscript
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents: 178
diff changeset
    12
-%   if
61b29cf8b717 6975488 Problem with utility/ghostscript
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents: 178
diff changeset
    13
+  Trailer /Encrypt oget /P oget 4 and 0 eq #? and
61b29cf8b717 6975488 Problem with utility/ghostscript
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents: 178
diff changeset
    14
+   { (   ****This owner of this file has requested you do not print it.\n)
61b29cf8b717 6975488 Problem with utility/ghostscript
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents: 178
diff changeset
    15
+     pdfformaterror printProducer
61b29cf8b717 6975488 Problem with utility/ghostscript
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents: 178
diff changeset
    16
+     /pdf_process_Encrypt cvx /invalidfileaccess signalerror
61b29cf8b717 6975488 Problem with utility/ghostscript
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents: 178
diff changeset
    17
+   }
61b29cf8b717 6975488 Problem with utility/ghostscript
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents: 178
diff changeset
    18
+  if
61b29cf8b717 6975488 Problem with utility/ghostscript
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents: 178
diff changeset
    19
 } bind def
61b29cf8b717 6975488 Problem with utility/ghostscript
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents: 178
diff changeset
    20
 
61b29cf8b717 6975488 Problem with utility/ghostscript
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents: 178
diff changeset
    21
 % Calculate the key used to decrypt an object (to pass to .decpdfrun or