The problem is most probably caused bei the Ghostscript which does the
conversion to the printer's PCL format not being able to cope with the
PDF after the form got flattened. Old cups-filters versions (< 1.22.x)
use pdftocairo or Ghostscript for form-flattening, newer cups-filters
use QPDF and you already observed that with QPDF-based form-flattening
the problem does not occur.

Do the following on your Ubuntu box where you did not yet install the
update.

So what you need to do is to set CUPS logging into debug mode ("cupsctl
--debug-logging"), print another (failing) job, and check bei the log
output of the filters whether flattening happened with pdftocairo or
Ghostscript. pdftocairo is the default. Ghostscript is only used if
pdftocairo fails.

Then you should use the cupsfilter utility of CUPS to run the filter
chain independently. Supply ypur PPD file (from /etc/cups/ppd/ to the
cupsfilter call. And if you choose "application/pdf" as output MIME
type, only the filtering up to pftopdf is done and the output is what
comes out of pdftopdf. Take care, by the logging on the screen, that
here the same utility (pdftocairo or Ghostscript) as in you failed print
jobs is used. Try to display the resulting file with Ghostscript.

in error_log you also find the Ghostscript command line used for the
actual printing (the one you have seen in the PPD but with all command
line arguments inserted). Please run the output also through this
command line.

If you get Ghostscript erroring or producing wrong output, post a
Ghostscript bug with exact Ghostscript command line and the ouput file
of cupsfilter attached, so that the Ghostscript developers can reproduce
it. Post a link to the bug report here.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to cups-filters in Ubuntu.
https://bugs.launchpad.net/bugs/1817033

Title:
  Unable to correctly print PDF file: Error: Ignoring spurious ET
  operator.

Status in cups-filters package in Ubuntu:
  Incomplete

Bug description:
  Upstream bug report https://github.com/OpenPrinting/cups-
  filters/issues/93.

  The university document
  [antrag_exmatrikulation.pdf](https://github.com/OpenPrinting/cups-
  filters/files/2881078/antrag_exmatrikulation.pdf) causes problems on
  different printers.

  Printing on the Canon iR-ADV C2225i using the Canon PCL, an error page
  is first printed, and on the first page after _Email_ everything is
  missing. The second page is fine.

  ```
   **** Error: Ignoring spurious ET operator. Output may be inco ****
  ```

  For that printer a special filter `sicgsfilter` has to be used, and is
  distributed by Canon. This also happens with their CQue 4.0-1 release
  from September 2018.

  ```
   *FoomaticRIPCommandLine: "gs -q -dBATCH %F -dPARANOIDSAFER -dNOPAUSE %B%A%C 
-dPDFFitPage  -sOutputFile=- - %D%E | sicgsfilter -MPCL -NP %G%H%I -u&user; 
-V&quot;&title;&quot; -n&copies; "
  ```

  On the Epson printer _WorkForce WF-2660_, no error page is printed,
  but on the first page everything after _Email_ _is missing_ too.

  Trying to use different pdftops renderers did not make any difference.
  For example,

  ```
   lpr -o pdftops-renderer=pdftops -P chipprinterpcl antrag_exmatrikulation.pdf
  ```

  gave the same result, the same with `pdftocairo`, `acroread`, `mupdf`.

  Following `/usr/share/doc/cups-filters/README.gz` and
  https://wiki.ubuntu.com/DebuggingPrintingProblems, I verified that the
  exact same PDF is put into the CUPS spool directory, and I captured
  the data sent to the printer with the commands below.

      $ lpadmin -p chipprinterpclfile -E -v file:/tmp/printout -P 
~/chipprinterpcl.ppd
      $ lpr -P chipprinterpclfile -o psdebug ~/antrag_exmatrikulation.pdf

  I get the attached Postscript file, which indeed contains the error
  messages.

  ```
  ESC%-12345X@PJL CQue4.0-1 x86_64
  @PJL COMMENT CANPJL SET USERNAME="pmenzel@localhost"
  @PJL COMMENT CANPJL SET DOCNAME="antrag_exmatrikulation.pdf!pmenz"
  @PJL SET RENDERMODE=COLOR
  @PJL COMMENT CANPJL SET FORCEMONOCHROME=FALSE
  @PJL COMMENT CANPJL SET SORTERMODE=GENERICON
  @PJL COMMENT CANPJL SET STAPLE=GENERICOFF
  @PJL COMMENT CANPJL SET BOOKLET=GENERICOFF
  @PJL SET DENSITY=0
  @PJL ENTER LANGUAGE=PCL
     **** Error: Ignoring spurious ET operator.
                 Output may be incorrect.
     **** Error: Executing Do inside a text block, attempting to recover
                 Output may be incorrect.
     **** Error: Executing Do inside a text block, attempting to recover
                 Output may be incorrect.
     **** Error: Ignoring spurious ET operator.
                 Output may be incorrect.
     **** Error: Executing Do inside a text block, attempting to recover
                 Output may be incorrect.
     **** Error: illegal nested BT operator detected.
                 Output may be incorrect.
     **** Error: Ignoring spurious ET operator.
                 Output may be incorrect.
     **** Error: Executing Do inside a text block, attempting to recover
                 Output may be incorrect.
     **** Error: illegal nested BT operator detected.
                 Output may be incorrect.
  […]
  ```

  Please find that file attached.

  ProblemType: Bug
  DistroRelease: Ubuntu 18.10
  Package: cups 2.2.8-5ubuntu1.2
  ProcVersionSignature: Ubuntu 4.18.0-15.16-generic 4.18.20
  Uname: Linux 4.18.0-15-generic x86_64
  ApportVersion: 2.20.10-0ubuntu13.2
  Architecture: amd64
  Date: Thu Feb 21 10:23:08 2019
  InstallationDate: Installed on 2017-03-20 (702 days ago)
  InstallationMedia: Ubuntu 16.04.2 LTS "Xenial Xerus" - Release amd64 
(20170215.2)
  Lpstat:
   device for Canon-iR-ADV-C2225: lpd://winprima.molgen.mpg.de/test
   device for DCP375CW: socket://141.14.220.198
  Lsusb:
   Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
   Bus 001 Device 004: ID 0bda:568b Realtek Semiconductor Corp. 
   Bus 001 Device 003: ID 04f3:2234 Elan Microelectronics Corp. 
   Bus 001 Device 002: ID 0cf3:e300 Atheros Communications, Inc. 
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  MachineType: Dell Inc. XPS 13 9360
  Papersize: a4
  PpdFiles:
   Canon-iR-ADV-C2225: Canon iR-ADV C2225 PCL
   DCP375CW: Brother DCP-375CW CUPS
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.18.0-15-generic 
root=/dev/mapper/ubuntu--vg-root ro quiet splash initcall_debug log_buf_len=16M 
vt.handoff=1
  SourcePackage: cups
  UpgradeStatus: Upgraded to cosmic on 2018-10-30 (113 days ago)
  dmi.bios.date: 09/27/2018
  dmi.bios.vendor: Dell Inc.
  dmi.bios.version: 2.10.0
  dmi.board.name: 0839Y6
  dmi.board.vendor: Dell Inc.
  dmi.board.version: A00
  dmi.chassis.type: 9
  dmi.chassis.vendor: Dell Inc.
  dmi.modalias: 
dmi:bvnDellInc.:bvr2.10.0:bd09/27/2018:svnDellInc.:pnXPS139360:pvr:rvnDellInc.:rn0839Y6:rvrA00:cvnDellInc.:ct9:cvr:
  dmi.product.family: XPS
  dmi.product.name: XPS 13 9360
  dmi.product.sku: 075B
  dmi.sys.vendor: Dell Inc.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1817033/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to