Hi John,
On Do 08 Mär 2012 18:07:21 CET "John A. Sullivan III" wrote:
On Thu, 2012-03-08 at 17:31 +0100, Mike Gabriel wrote:
Hi Helmer,
On Do 08 Mär 2012 16:26:31 CET Helmer Teles wrote:
Steps to correct it:
I've changed the line in /usr/lib/cups/backend/cups-x2go to:
# PS2PDF command my $ps2pdf = "/usr/bin/gs -q -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH - dSAFER -sDEVICE=pdfwrite -sOutputFile=\"%s.pdf\" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode - dPDFSETTINGS=/printer -dDoNumCopies -c .setpdfwrite -f \"%s\"";
FROM:
# PS2PDF command my $ps2pdf = "/usr/bin/gs -q -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH - dSAFER -sDEVICE=pdfwrite -sOutputFile=\"%s.pdf\" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode - dPDFSETTINGS=/prepress -c .setpdfwrite -f \"%s\"";
Patch applied, thanks! http://code.x2go.org/gitweb?p=cups-x2go.git;a=commitdiff;h=86e725ac8e514d40a...
<snip> I do not know much about ghostscript but do we know what this change does and what the real problem was? Was it the PDFSETTINGS=/printer or the DoNumCopies? What does the change really do?
A half hour of Internet research didn't turn up much: -dPDFSETTINGS=/screen (screen-view-only quality, 72 dpi images) -dPDFSETTINGS=/ebook (low quality, 150 dpi images) -dPDFSETTINGS=/printer (high quality, 300 dpi images) -dPDFSETTINGS=/prepress (high quality, color preserving, 300 dpi imgs) -dPDFSETTINGS=/default (almost identical to /screen)
I do not know what color preserving means. I am a little concerned about size. We have had some issues where the wrong settings is the difference between sending a 2MB file and a 40MB file (I don't recall the exact number but I believe the difference was much greater) which can be critical when printing across a WAN. This is from the CutePDF FAQ: How to reduce the size of output PDF file? You can alter the parameters used in a text file "%Program Files%\Acro Software\CutePDF Writer\PDFWrite.rsp". The key parameters are in the line: -dPDFSETTINGS=configuration where configuration can be /screen, /printer, /prepress, /default. Using /Printer can cut size by half.
Thanks for your critical feedback. I have only applied the DoNumCopies
setting, the PDFSETTINGS=prepress I have left untouched.
I will build a package of the latest commit and Helmer has to test. Ok Helmer?
Mike
--
DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419
GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...