[cups.bugs] No print of PDF file from AR

Helge Blischke h.blischke at srz.de
Fri Feb 23 04:30:04 PST 2007


Hin-Tak Leung wrote:
> (Apologies to others for being absent for a while - rather busy lately).
> 
> Your problem is most probably an issue with interaction between (some 
> version of) ghostscript and postscript generated by Acrobat reader.
> The few lines around "/undefined in --get--" are ghostscript error messages.
> While it is most probably a bug in esp ghostscript, if you want printing of 
> pdf works reliably, you probably should use open-source software for reading
> and displaying pdf's, such as xpdf, evince, kpdf, gv, gsview, ggv, and 
> another dozen of pdf-capable software based on either xpdf/libpoppler or 
> ghostscript. So I have a few suggestions:
> 
> (1) use xpdf/evine/kpdf/gv/gsview/ggv instead of acrobat reader for your pdf
> needs.
> (2) complain to Adobe - concerning "--> This document is DSC-conforming!",
> and Acrobat reader not being open-source.
> DSC is an Adobe standard, and we are talking about a piece of Adobe software
> generating postscript code which does not conform to an Adobe standard here.
>  
> (3) choose "print to file", and attach that file to the bug report. 
> esp ghostscript's bug tracking is on http://www.cups.org/ somewhere.
> 
> (4) esp ghostscript is somewhat old compared to the main ghostscript (for
> licensing reasons, etc). it is possible that the problem has already been fixed
> but not yet widely available.
> 
> --- alupu at verizon.net wrote:
> 
> 
>>Hi,
>>Thank you Till Kamppeter and Michael Sweet for your words on this subject.
>>
>>On 2007/02/20 Tue PM 04:36:18 EST, Till wrote 
>>
>>>Get an updated foomatic-rip
>>
>>I installed the latest "foomatic-filters-3.0-20070220" of 2007-02-20 09:32
>>[foomatic-rip (209694 bytes), foomatic-gswrapper (3048 bytes)].
>>Same problem/error.  No print.  Detailed "debug" excerpt below.
>>
>>What do I do now?
>>
>>-- A couple of philosophical questions to all printing specialists:
>>
>>1. At v1.2.7 of CUPS shouldn't there be a graceful way of notifying the user
>>that
>>there's something wrong with the job (because of an error - and maybe a few
>>meaningful words about the nature of the error)?   
>>
>>Each time I run this print test, the job is duly listed on the
>>'lpstat -W completed' and never appears on
>>'lpstat -W not-completed'.
>>If you didn't physically look at the frozen printer or at the 'error.log'
>>file you'd never know there were something amiss with the whole thing.
>>
>>2. If the "debug" mode (of 'cupsd.conf') cannot narrow the problem down to
>>beyond speculations like it might be the AR, the foomatic, the file, etc.,
>>what good is "debug" for after all?
>>
>>Anyway, thank you for your interest in the situation,
>>-- Alex
>>
>>----------------------------------------------------------
>>EXCERPT "debug" of PDF file failure on AdobeReader print
>>D  cupsdAcceptClient: 8 from localhost:631 (IPv4)
>>D  cupsdReadClient: 8 POST /printers/ML-1750 HTTP/1.1
>>D  Print-Job ipp://localhost/printers/ML-1750
>>D  print_job: request file type is application/postscript.
>>D  add_job: requesting-user-name="root"
>>I  Job 156 queued on "ML-1750" by "root".
>>D  job-sheets=none,none
>>D  [Job 156] argv[0]="ML-1750"
>>D  [Job 156] argv[1]="156"
>>D  [Job 156] argv[2]="root"
>>D  [Job 156] argv[3]="Acro000e0mS5w"
>>D  [Job 156] argv[4]="1"
>>D  [Job 156] argv[5]="page-left=24 page-top=36 resolution=150x150dpi cpi=10
>> page-bottom=36 job-uuid=urn:uuid:e7b7dd7a-c889-3b4b-5b62-469194f4ec49"
>>D  [Job 156] argv[6]="/var/spool/cups/d00156-001"
>>D  [Job 156] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
>>D  [Job 156] envp[1]="CUPS_DATADIR=/usr/share/cups"
>>D  [Job 156] envp[2]="CUPS_DOCROOT=/usr/share/doc/cups"
>>D  [Job 156] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
>>D  [Job 156] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
>>D  [Job 156] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
>>D  [Job 156] envp[6]="CUPS_SERVERROOT=/etc/cups"
>>D  [Job 156] envp[7]="CUPS_STATEDIR=/var/run/cups"
>>D  [Job 156] envp[8]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:
>>                           /usr/bin"
>>D  [Job 156] envp[9]="SERVER_ADMIN=root at Alex"
>>D  [Job 156] envp[10]="SOFTWARE=CUPS/1.2.7"
>>D  [Job 156] envp[11]="TMPDIR=/var/spool/cups/tmp"
>>D  [Job 156] envp[12]="USER=root"
>>D  [Job 156] envp[13]="CUPS_SERVER=localhost"
>>D  [Job 156] envp[14]="CUPS_ENCRYPTION=IfRequested"
>>D  [Job 156] envp[15]="IPP_PORT=631"
>>D  [Job 156] envp[16]="CHARSET=iso-8859-1"
>>D  [Job 156] envp[17]="LANG=en_US"
>>D  [Job 156] envp[18]="PPD=/etc/cups/ppd/ML-1750.ppd"
>>D  [Job 156] envp[19]="RIP_MAX_CACHE=8m"
>>D  [Job 156] envp[20]="CONTENT_TYPE=application/postscript"
>>D  [Job 156] envp[21]="DEVICE_URI=parallel:/dev/lp0"
>>D  [Job 156] envp[22]="PRINTER=ML-1750"
>>D  [Job 156] envp[23]="FINAL_CONTENT_TYPE=printer/ML-1750"
>>I  Started filter /usr/lib/cups/filter/pstops (PID 2269) for job 156.
>>I  Started filter /usr/lib/cups/filter/foomatic-rip (PID 2270) for job 156.
>>I  Started backend /usr/lib/cups/backend/parallel (PID 2271) for job 156.
>>D  cupsdProcessIPPRequest: 8 status_code=0 (successful-ok)
>>D  [Job 156] Before copy_comments - %!PS-Adobe-3.0
>>D  [Job 156] %!PS-Adobe-3.0
>>D  [Job 156] %%Title: (Microsoft Word - FY07 Q2 HW MIR verbiage_thermal
>> FINAL.doc)
>>D  [Job 156] %%Version: 1 2
>>D  [Job 156] %%CreationDate: 08:49:44 PM 02/22/2007
>>D  [Job 156] %%For: (davidhof)
>>D  [Job 156] %%DocumentData: Clean7Bit
>>D  [Job 156] %%LanguageLevel: 2
>>D  [Job 156] %%BoundingBox: 0 0 612 792
>>D  [Job 156] %%HiResBoundingBox: 0.0 0.0 612.0 792.0
>>D  [Job 156] %%Pages: 1
>>D  [Job 156] %%DocumentProcessColors: (atend)
>>D  [Job 156] %%DocumentNeededResources: (atend)
>>D  [Job 156] %%DocumentSuppliedResources:
>>D  [Job 156] %%+ procset (Adobe Acrobat - PDF operators) 1.2 0
>>D  [Job 156] %%+ procset (Adobe Acrobat - type operators) 1.2 0
>>D  [Job 156] %%EndComments
>>D  [Job 156] Before copy_prolog - %%BeginDefaults
>>D  [Job 156] Before copy_setup - %%BeginSetup
>>D  [Job 156] Before page loop - %%Page: 1 1
>>D  [Job 156] Copying page 1...
>>D  [Job 156] pagew = 588.0, pagel = 720.0
>>D  [Job 156] bboxw = 612, bboxl = 792
>>D  [Job 156] PageLeft = 24.0, PageRight = 612.0
>>D  [Job 156] PageTop = 756.0, PageBottom = 36.0
>>D  [Job 156] PageWidth = 612.0, PageLength = 792.0
>>D  [Job 156] backendRunLoop(print_fd=0, device_fd=4, use_bc=0)
>>D  [Job 156] foomatic-rip version $Revision$ running...
>>D  [Job 156] Parsing PPD file ...
>>D  [Job 156] *cupsFilter: "application/vnd.cups-postscript 0 foomatic-rip"
>>D  [Job 156] Added option ColorSpace
>>D  [Job 156] Added option Font
>>D  [Job 156] Spooler: cups
>>D  [Job 156] Printer: ML-1750
>>D  [Job 156] Shell: /bin/sh
>>D  [Job 156] PPD file: /etc/cups/ppd/ML-1750.ppd
>>D  [Job 156] ATTR file: 
>>D  [Job 156] Printer model: Samsung ML-1750 Foomatic/ljet4 (recommended)
>>D  [Job 156] Job title: Acro000e0mS5w
>>D  [Job 156] File(s) to be printed: 
>>D  [Job 156] <STDIN>
>>D  [Job 156] GhostScript extra search path ('GS_LIB'): /usr/share/cups/fonts
>>D  [Job 156] Reading PostScript input ...
>>D  [Job 156] --> This document is DSC-conforming!
>>D  [Job 156] Job claims to be DSC-conforming, but "%%BeginProlog" was missing
>> before first line with another "%%Begin..." comment (is this a
>> TeX/LaTeX/dvips-generated PostScript file?). Assuming start of "Prolog"
>>here.
>>D  [Job 156] Found: %%BeginProlog
>>D  [Job 156] Found: %%EndProlog
>>D  [Job 156] Found: %%BeginSetup
>>D  [Job 156] Found: %%BeginFeature: *PageRegion Letter
>>D  [Job 156] Option: PageRegion=Letter --> Option will be set by PostScript
>> interpreter
>>D  [Job 156] Found: %%BeginFeature: *InputSlot Default
>>D  [Job 156] Option: InputSlot=Default --> Setting option
>>D  [Job 156] Found: %% FoomaticRIPOptionSetting: InputSlot=Default
>>D  [Job 156] Option: InputSlot=Default --> Setting option
>>D  [Job 156] Found: %%BeginFeature: *Resolution 150x150dpi
>>D  [Job 156] Option: Resolution=150x150dpi --> Correcting numerical/string
>> option to Resolution=600x600dpi (Command line argument)
>>D  [Job 156] Found: %%EndSetup
>>D  [Job 156] Inserting PostScript code for CUPS' page accounting
>>D  [Job 156] New page:  1 1
>>D  [Job 156] Inserting option code into "PageSetup" section.
>>D  [Job 156] Found: %%BeginPageSetup
>>D  [Job 156] Found: %%BeginFeature: *HalftoningAlgorithm Standard
>>D  [Job 156] Option: HalftoningAlgorithm=Standard --> Option will be set by
>> PostScript interpreter
>>D  [Job 156] Found: %%EndPageSetup
>>D  [Job 156] End of page header
>>D  [Job 156] Found: %%BeginPageSetup
>>D  [Job 156] Found: %%EndPageSetup
>>D  [Job 156] End of page header
>>D  [Job 156] Stopping search for page header options
>>D  [Job 156] Found:
>>D  [Job 156] q
>>D  [Job 156] --> Output goes directly to the renderer now.
>>D  [Job 156] Starting renderer
>>D  [Job 156] JCL: <job data> 
>>D  [Job 156] renderer PID kid4=2276
>>D  [Job 156] renderer command: gs -q -dBATCH -dPARANOIDSAFER -dNOPAUSE
>> -sDEVICE=ljet4 -sOutputFile=- - | perl -p -0033 -e " s/^&l\d+[aA]/$&/; " 
>>D  [Job 156] foomatic-gswrapper: gs '-sstdout=%stderr' '-dBATCH'
>> '-dPARANOIDSAFER' '-dNOPAUSE' '-sDEVICE=ljet4' '-sOutputFile=%stdout' '-'
>>D  [Job 156] ESP Ghostscript 815.03 (2006-08-25)
>>D  [Job 156] Loading NimbusMonL-Regu font from
>> /usr/share/ghostscript/fonts/n022003l.pfb... 2512824 1191000 2441188 596661
>>1
>> done.
>>D  [Job 156] Wrote 1 pages...
>>D  PID 2269 (/usr/lib/cups/filter/pstops) exited with no errors.
>>D  [Job 156] Substituting espgsMissingChar for dotlessi in the font N15
>>E  [Job 156] /undefined in --get--
>>D  [Job 156] Operand stack:
>>D  [Job 156] --dict:13/17(ro)(L)--   1   space   --dict:1/256(L)--   space
>>D  [Job 156] Execution stack:
>>D  Discarding unused printer-state-changed event...
>>D  [Job 156] %interp_exit   .runexec2   --nostringval--   --nostringval--
>>   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--
>>   --nostringval--   false   1   %stopped_push   1   3   %oparray_pop   1   3
>>   %oparray_pop   1   3   %oparray_pop   1   3   %oparray_pop   .runexec2
>>   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push
>>   --nostringval--   %finish_show   --nostringval--   --nostringval--   9   6
>>   0   --nostringval--   (gs_show_enum)   %op_show_continue   --nostringval--
>>D  [Job 156] Dictionary stack:
>>D  [Job 156] --dict:1121/1686(ro)(G)--   --dict:1/20(G)--  
>>--dict:119/200(L)--
>>   --dict:36/89(L)--   --dict:87/162(ro)(L)--   --dict:64/78(ro)(L)--
>>   --dict:13/17(ro)(L)--
>>D  [Job 156] Current allocation mode is local
>>D  [Job 156] Last OS error: 2
>>D  [Job 156] ESP Ghostscript 815.03: Unrecoverable error, exit code 1
>>D  [Job 156] tail process done writing data to STDOUT
>>D  [Job 156] KID4 finished
>>D  [Job 156] KID3 finished
>>D  [Job 156] Closing renderer
>>D  [Job 156] KID4 exited with status 0
>>D  [Job 156] KID3 exited with status 0
>>D  [Job 156] Renderer exit stat: 0
>>D  [Job 156] Renderer process finished
>>D  [Job 156] Closing foomatic-rip.
>>
> 
> === message truncated ===
> 
> 
> 
> 		
> ___________________________________________________________ 
> All New Yahoo! Mail – Tired of unwanted email come-ons? Let our SpamGuard protect you. http://uk.docs.yahoo.com/nowyoucan.html
> 

I suspect the main issue is that espgs uses "space" as the substitution for
glyphs not present in the font instead of the default ".notdef".

There is a different thread on this issue.

Helge

-- 
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de




More information about the cups-devel mailing list