Subject: Remove setpdfwrite from cups-x2go

From: Orion Poplawski <[email-masked]>
Date: Fri, 18 Jun 2021 20:48:18 -0600

Package: cups-x2go

ghostscript 9.54 removed setpdfwrite.  Is is the patch that Fedora is 
carrying to deal with it.

-- 
Orion Poplawski
he/him/his - surely the least important thing about me
Manager of NWRA Technical Systems          720-772-5637
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       [email-masked]
Boulder, CO 80301                 https://www.nwra.com/
diff -urNB cups-x2go-3.0.1.3-orig/cups-x2go cups-x2go-3.0.1.3/cups-x2go
--- cups-x2go-3.0.1.3-orig/cups-x2go	2021-06-16 15:29:09.140522370 +0200
+++ cups-x2go-3.0.1.3/cups-x2go	2021-06-16 15:36:38.715007753 +0200
@@ -42,8 +42,8 @@
 my $printdsa = "/root/.ssh/id_dsa-x2goprint";
 
 # PS2PDF command
-my $ps2pdf = "/usr/bin/gs -q -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=- -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -dDoNumCopies -c .setpdfwrite -f \"%s\"";
-#my $ps2pdf = "/usr/bin/gs -q -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=- -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -dDoNumCopies -c .setpdfwrite -f /usr/bin/margin-offset.ps \"%s\"";
+my $ps2pdf = "/usr/bin/gs -q -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=- -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -dDoNumCopies -c 3000000 setvmthreshold -f \"%s\"";
+#my $ps2pdf = "/usr/bin/gs -q -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=- -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -dDoNumCopies -c 3000000 setvmthreshold -f /usr/bin/margin-offset.ps \"%s\"";
 
 ## loglevel for cups-x2go, possible values: emerg, alert, crit, err, warning, notice, info, debug
 my $strloglevel = "notice";
diff -urNB cups-x2go-3.0.1.3-orig/cups-x2go.conf cups-x2go-3.0.1.3/cups-x2go.conf
--- cups-x2go-3.0.1.3-orig/cups-x2go.conf	2021-06-16 15:29:09.140522370 +0200
+++ cups-x2go-3.0.1.3/cups-x2go.conf	2021-06-16 15:36:57.162232833 +0200
@@ -15,7 +15,7 @@
 
 ## command to generate PDF file
 ## CAUTION: this command MUST output the resulting PDF File to standard output.
-#ps2pdf = /usr/bin/gs -q -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=- -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -dDoNumCopies -c .setpdfwrite -f \"%s\"
+#ps2pdf = /usr/bin/gs -q -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=- -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -dDoNumCopies -c 3000000 setvmthreshold -f \"%s\"
 
 ## loglevel for cups-x2go, possible values: emerg, alert, crit, err, warning, notice, info, debug
 #loglevel = notice