[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#740583: pdftops (ghostscript) issue in debian 7.0 https://answers.launchpad.net/hplip/+question/243753



The DSC warnings are caused by a bug in Ghostscript (needs upstream
report on http://bugs.ghostscript.com/), sometimes Ghostscript inserts
"%BeginResource" (only one "%" character) instead of "%%BeginResource".
This problem is still present in Ghostscript 9.10.

One can easily show it running only Ghostscript:

gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=ps2write -sOUTPUTFILE=%stdout
-dLanguageLevel=3 -r600 -dCompressFonts=false -dNoT3CCITT
-dNOINTERPOLATE -c 'save pop' -f /tmp/compilers.pdf >
/tmp/printout_gs_9_05.ps

The exact Ghostscript command line can be different for you. See the
output of your "cupsfilter" call.

If a printer errors due to this it is a firmware bug, as
"%%BeginResource" and "%%EndResource" are still comments (also if they
have only one "%" character) and so they should be ignored by the
printer's PostScript interpreter.

Please try the following:

Edit your /tmp/printout_gs_9_05.ps file, correcting the missing "%"
characters, changing all "%BeginResource" to "%%BeginResource", the try
to print it (with "-o raw") again. Does it work now?

   Till


Reply to: