[gs-bugs] [Bug 689986] When used in cups, hpcups driver produces no output

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Thu Aug 12 19:55:59 UTC 2010


http://bugs.ghostscript.com/show_bug.cgi?id=689986

Till Kamppeter <till.kamppeter at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|CUPS driver                 |PS Interpreter
         AssignedTo|till.kamppeter at gmail.com    |alex.cherepanov at artifex.com

--- Comment #8 from Till Kamppeter <till.kamppeter at gmail.com> 2010-08-12 19:55:56 UTC ---
This is not a bug of the CUPS Raster output device, either it is a bug of CUPS'
pstops filter or of the PostScript interpreter of Ghostscript.

Feeding the offending file directly into GhostScript

cat ../testfiles/gnuplot.ps | /usr/bin/gs -dQUIET -dPARANOIDSAFER -dNOPAUSE
-dBATCH -dNOMEDIAATTRS -sDEVICE=cups -sstdout=%stderr -sOUTPUTFILE=%stdout -c 
-f -_ > out.raster

cat ../testfiles/gnuplot.ps | /usr/bin/gs -dQUIET -dPARANOIDSAFER -dNOPAUSE
-dBATCH -dNOMEDIAATTRS -sDEVICE=png16m -sstdout=%stderr -sOUTPUTFILE=%stdout -c
 -f -_ > out.png

Gives correct output with both "cups" and "png16m" output devices, whereas
passing the file through CUPS's pstops filter, as it usually happens when
printing with CUPS, both "cups" and "png16m" produce empty output files (0
pages):

cat ../testfiles/gnuplot.ps | /usr/lib/cups/filter/pstops 1 1 1 1 'PageSize=A4'
| /usr/bin/gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOMEDIAATTRS
-sDEVICE=cups -sstdout=%stderr -sOUTPUTFILE=%stdout -c  -f -_ > out.raster

cat ../testfiles/gnuplot.ps | /usr/lib/cups/filter/pstops 1 1 1 1 'PageSize=A4'
| /usr/bin/gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOMEDIAATTRS
-sDEVICE=png16m -sstdout=%stderr -sOUTPUTFILE=%stdout -c  -f -_ > out.png

Strangely enough Ghostscript can display the output of pstops on the screen:

cat ../testfiles/gnuplot.ps | /usr/lib/cups/filter/pstops 1 1 1 1 'PageSize=A4'
> gnuplot-pstops.ps
gs -sDEVICE=x11 gnuplot-pstops.ps

As the PNG output device shows the same problem as the CUPS Raster output
device here, the problem cannot be in the CUPS Raster output device.

-- 
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the gs-bugs mailing list