[X2Go-Dev] cups-x2go problem printing multiple copies from windows terminal server. Fix inside ( i guess )

John A. Sullivan III jsullivan at opensourcedevel.com
Thu Mar 8 18:07:21 CET 2012


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=86e725ac8e514d40abcef9db2367be05736d0604
> 
<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 - John




More information about the x2go-dev mailing list