[Pkg-cups-devel] r832 - in cupsys/trunk/debian: . local

Till Kamppeter till-guest at alioth.debian.org
Mon Aug 18 12:12:57 UTC 2008


Author: till-guest
Date: Mon Aug 18 12:12:57 2008
New Revision: 832

Log:
Make printing of encrypted PDFs with the Adobe Reader work.


Added:
   cupsys/trunk/debian/local/adobereader.convs
   cupsys/trunk/debian/local/adobereader.types
Modified:
   cupsys/trunk/debian/changelog
   cupsys/trunk/debian/rules

Modified: cupsys/trunk/debian/changelog
==============================================================================
--- cupsys/trunk/debian/changelog	(original)
+++ cupsys/trunk/debian/changelog	Mon Aug 18 12:12:57 2008
@@ -23,9 +23,17 @@
     debian/local/filters/pdf-filters/removefromcups,
     debian/local/filters/pdf-filters/README,
     debian/control: Added pdftoijs filter.
+  * debian/local/adobereader.types, debian/local/adobereader.convs,
+    debian/rules:
+    Added rules to handle PostScript files which Adobe Reader
+    generates from encrypted PDF files. These PostScript files contain
+    PostScript code which stops Ghostscript with an error when one
+    tries to convert them back to
+    (now unencrypted) PDF. As a temporary workaround (until we get a
+    better solution from Adobe) we run these files to the old
+    PostScript workflow (pstops filter) now.
 
-
- -- Till Kamppeter <tkamppeter at gmail.com>  Sun, 17 Aug 2008 18:11:36 +0200
+ -- Till Kamppeter <tkamppeter at gmail.com>  Mon, 18 Aug 2008 13:11:36 +0200
 
 cups (1.3.8-5) experimental; urgency=low
 

Added: cupsys/trunk/debian/local/adobereader.convs
==============================================================================
--- (empty file)
+++ cupsys/trunk/debian/local/adobereader.convs	Mon Aug 18 12:12:57 2008
@@ -0,0 +1,3 @@
+# PostScript which is blocked against being converted to PDF will be
+# printed with the old PostScript workflow
+application/noredistillps application/vnd.cups-postscript 22 pstops

Added: cupsys/trunk/debian/local/adobereader.types
==============================================================================
--- (empty file)
+++ cupsys/trunk/debian/local/adobereader.types	Mon Aug 18 12:12:57 2008
@@ -0,0 +1,4 @@
+# This rule recognizes PostScript with the "No Re-Distill" insertion which Adobe
+# Reader inserts to prevent converting its PostScript print output from
+# encrypted PDF files back to (unencryoted) PDF. 
+application/noredistillps string(0,%!) + contains(0,10240,"ADOBeginClientInjection: DocumentSetup Start <22>No Re-Distill<22>")

Modified: cupsys/trunk/debian/rules
==============================================================================
--- cupsys/trunk/debian/rules	(original)
+++ cupsys/trunk/debian/rules	Mon Aug 18 12:12:57 2008
@@ -87,7 +87,7 @@
 	# Move file detection and conversion rules to /usr/share/cups/mime/ so
 	# that the package manager does not consider them conffiles
 	install -d $(DEB_DESTDIR)/../cups/usr/share/cups/mime
-	( cd $(DEB_DESTDIR)/../cups/etc/cups; mv cpdftocps.* imagetopdf.* pdftopdf.* pdftoraster.* pdf.* texttopdf.* $(DEB_DESTDIR)/../cups/usr/share/cups/mime/ )
+	( cd $(DEB_DESTDIR)/../cups/etc/cups; mv cpdftocps.* imagetopdf.* pdftopdf.* pdftoraster.* pdf.* texttopdf.* adobereader.* $(DEB_DESTDIR)/../cups/usr/share/cups/mime/ )
 	# Simple Ghostscript-based PostScript-to-PDF filter
 	install -m 0755 debian/filters/pstopdf $(DEB_DESTDIR)/../cups/usr/lib/cups/filter
 



More information about the Pkg-cups-devel mailing list