Summary: | net-print/cups-filters-1.0.34-r1 - printing fails with Syntax Error: Couldn't find trailer dictionary | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | Current packages | Assignee: | Printing Team <printing> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | martinATgentoo |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Juergen Rose
2013-06-28 09:28:13 UTC
(In reply to Juergen Rose from comment #0) > I can't any more print under linux. In /var/log/cups/error_log I find: > ... > > D [28/Jun/2013:07:39:00 +0200] [Job 189] Spooler: cups > D [28/Jun/2013:07:39:00 +0200] [Job 189] Printer: Canon-direct_irc2620c2cs Hello Canon printer :-) > D [28/Jun/2013:07:39:00 +0200] [Job 189] Job title: CERVOTEC_Preisliste_2013_01.indd - cervotec_preisliste_01.2013.pdf hello pdf file... Today I had a similar problem with my Canon. Printing PDFs from okular was impossible. Printing PDFs from Adobe acroread worked fine. My log was: D [03/Jul/2013:16:11:27 +0200] [Job 2629] File(s) to be printed: D [03/Jul/2013:16:11:27 +0200] [Job 2629] <STDIN> D [03/Jul/2013:16:11:27 +0200] [Job 2629] Ghostscript extra search path ('GS_LIB '): /usr/share/cups/fonts D [03/Jul/2013:16:11:27 +0200] [Job 2629] Printing system options: D [03/Jul/2013:16:11:27 +0200] [Job 2629] Pondering option '<D8><CB>' D [03/Jul/2013:16:11:27 +0200] [Job 2629] Unknown boolean option "<D8><CB>". D [03/Jul/2013:16:11:27 +0200] [Job 2629] Pondering option 'uuid=9f6bfdb1-b340-324c-4994-a48b5bd3e6af' D [03/Jul/2013:16:11:27 +0200] [Job 2629] Unknown option uuid=9f6bfdb1-b340-324c-4994-a48b5bd3e6af. D [03/Jul/2013:16:11:27 +0200] [Job 2629] Pondering option 'job-originating-host-name=localhost' D [03/Jul/2013:16:11:27 +0200] [Job 2629] Unknown option job-originating-host-name=localhost. D [03/Jul/2013:16:11:27 +0200] [Job 2629] Pondering option 'time-at-creation=1372860687' D [03/Jul/2013:16:11:27 +0200] [Job 2629] Unknown option time-at-creation=1372860687. D [03/Jul/2013:16:11:27 +0200] [Job 2629] Pondering option 'time-at-processing=1372860687' D [03/Jul/2013:16:11:27 +0200] [Job 2629] Unknown option time-at-processing=1372860687. D [03/Jul/2013:16:11:27 +0200] [Job 2629] Options from the PPD file: D [03/Jul/2013:16:11:27 +0200] [Job 2629] Pondering option 'Duplex=None' D [03/Jul/2013:16:11:27 +0200] [Job 2629] Pondering option 'PageSize=A4' D [03/Jul/2013:16:11:27 +0200] [Job 2629] ================================================ D [03/Jul/2013:16:11:27 +0200] [Job 2629] File: <STDIN> D [03/Jul/2013:16:11:27 +0200] [Job 2629] ================================================ D [03/Jul/2013:16:11:27 +0200] [Job 2629] /usr/libexec/cups/filter/pstopdf: eval: line 102: unexpected EOF while looking for matching ``' D [03/Jul/2013:16:11:27 +0200] [Job 2629] PID 13557 (/usr/libexec/cups/filter/pstopdf) stopped with status 2. E [03/Jul/2013:16:11:27 +0200] [Job 2629] loadFile failed: temp file: not a PDF file And line 102 of /usr/libexec/cups/filter/pstopdf is maybe the problem: eval "$(printf "%s" "$5" | sed -nre 's/.*(^|\s)(PageSize|PageRegion)=(\S+).*/pagesize="${pagesize:-\3}"/p')" However, I cannot find the error in line 102. Additionally, I don't understand the default pdf-filtering process (PDF->PS->PDF->PS). My current solution is (=deactivate pstopdf processing): I change the file /usr/share/cups/mime/cupsfilters.convs 1.) Comment out line 45 to #application/postscript application/pdf 22 pstopdf 2.) added this after line 45: application/postscript application/vnd.cups-postscript 66 pstops Restart cupsd! Now, I can print my PDFs to my printers again. Hope this helps, Martin please try cups-filters-1.0.35, the filter chains were improved there Tried cups-filters-1.0.35, same error: /usr/libexec/cups/filter/pstopdf: eval: line 102: unexpected EOF while looking for matching ``' Do you still have this problem with current versions of cups / cups-filters? The printer works now with net-print/cups-filters-1.5.0 and net-print/cups-2.1.4. (In reply to Martin Atenreit from comment #5) > The printer works now with net-print/cups-filters-1.5.0 and > net-print/cups-2.1.4. Thanks. |