Group :: Publishing
RPM: cups-x2go
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: cups-x2go-setpdfwrite.patch
Download
Download
--- cups-x2go-3.0.1.4/cups-x2go.conf.orig 2018-11-22 09:23:55.000000000 +0200
+++ cups-x2go-3.0.1.4/cups-x2go.conf 2023-02-19 12:06:51.568294364 +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 30000000 setvmthreshold -f \"%s\"
## loglevel for cups-x2go, possible values: emerg, alert, crit, err, warning, notice, info, debug
#loglevel = notice
--- cups-x2go-3.0.1.4/cups-x2go.orig 2018-11-22 09:23:55.000000000 +0200
+++ cups-x2go-3.0.1.4/cups-x2go 2023-02-19 12:05:58.379651308 +0200
@@ -43,8 +43,8 @@ my $x2goserver = "local";
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";