apple / cups

Apple CUPS Sources
https://www.cups.org
Apache License 2.0
1.93k stars 464 forks source link

Postscript-Error #1037

Closed michaelrsweet closed 19 years ago

michaelrsweet commented 19 years ago

Version: 1.1.20 CUPS.org User: zuecks.gmx

Hi all, I use ESP-PrintPro 4.4.1

I’ve detected a bug problem with convert hpgl to ps. First I checked the mime.convs

application/vnd.hp-HPGL application/postscript 66 hpgltops application/postscript application/vnd.cups-postscript 66 pstops

its ok

If I print something a hpgl-file to a ps-printer (with fitplot).I get a sheet of paper with printout ps-Error.

Error identification: undefined Offending Command --get-- Operand Stack Top /ESPsave Top-1/userdict

Here a Example from a file, which I printed to a file. Please look, I noticed no exactly ps was generated.

----------The print to file--------------------------------

%!PS-Adobe-3.0 %RBINumCopies: 1 %%Pages: (atend) %%BoundingBox: 14 13 828 582 %%LanguageLevel: 2 %%DocumentData: Clean7Bit %%DocumentSuppliedResources: procset hpgltops 1.1 0 %%DocumentNeededResources: font Courier Helvetica %%Creator: hpgltops/CUPS v1.1.20 %%CreationDate: Fri Oct 29 16:37:18 2004 %%Title: 280x196.hp2 %%For: root %%EndComments %%BeginProlog /DefaultPenWidth 28.35 def /setrgbcolor { pop pop pop } bind def %%BeginResource: procset hpgltops 1.1 0 % % "$Id: HPGLprolog,v 1.9 2002/12/17 18:56:46 swdev Exp $" % % HP-GL/2 filter procset for the Common UNIX Printing System (CUPS). % % This procset contains the basic drawing commands that are used to % reduce output size. Note the 'MP' (make newpath) definition - this % should be called 'NP' (newpath), but GhostScript uses the 'NP' name % for 'noaccess put' in some of its font files... % % Copyright 1993-2003 by Easy Software Products % % These coded instructions, statements, and computer programs are the % property of Easy Software Products and are protected by Federal % copyright law. Distribution and use rights are outlined in the file % "LICENSE.txt" which should have been included with this file. If this % file is missing or damaged please contact Easy Software Products % at: % % Attn: CUPS Licensing Information % Easy Software Products % 44141 Airport View Drive, Suite 204 % Hollywood, Maryland 20636-3111 USA % % Voice: (301) 373-9603 % EMail: cups-info@cups.org % WWW: http://www.cups.org % /MO { moveto } bind def /LI { lineto } bind def /FI { fill } bind def /ST { stroke } bind def /CP { closepath } bind def /MP { newpath } bind def /SP { setlinewidth setrgbcolor } bind def %%EndResource %%EndProlog %%Trailer %%EOF %%BeginSetup [{ %%BeginFeature: *PageSize A4

2 dict dup /PageSize [595 842] put dup /ImagingBBox null put setpagedevice

%%EndFeature } stopped cleartomark [{ %%BeginFeature: *Collate True

1 dict dup /Collate true put setpagedevice %%EndFeature } stopped cleartomark [{ %%BeginFeature: *Duplex None

2 dict dup /Duplex false put dup /Tumble false put setpagedevice %%EndFeature } stopped cleartomark % x y w h ESPrc - Clip to a rectangle. userdict/ESPrc/rectclip where{pop/rectclip load} {{newpath 4 2 roll moveto 1 index 0 rlineto 0 exch rlineto neg 0 rlineto closepath clip newpath}bind}ifelse put % x y w h ESPrf - Fill a rectangle. userdict/ESPrf/rectfill where{pop/rectfill load} {{gsave newpath 4 2 roll moveto 1 index 0 rlineto 0 exch rlineto neg 0 rlineto closepath fill grestore}bind}ifelse put % x y w h ESPrs - Stroke a rectangle. userdict/ESPrs/rectstroke where{pop/rectstroke load} {{gsave newpath 4 2 roll moveto 1 index 0 rlineto 0 exch rlineto neg 0 rlineto closepath stroke grestore}bind}ifelse put %%EndSetup userdict/ESPwl{}bind put

userdict /ESPsave get restore %%Trailer %%Pages: 0 %%EOF

---------------------------here is the error_log-----------------------

D [29/Oct/2004:16:28:40 +0200] print_job: auto-typing file... D [29/Oct/2004:16:28:40 +0200] print_job: request file type is application/vnd.hp-hpgl. D [29/Oct/2004:16:28:40 +0200] CancelJob: id = 69 D [29/Oct/2004:16:28:40 +0200] check_quotas: requesting-user-name = 'root' D [29/Oct/2004:16:28:40 +0200] print_job: requesting-user-name = 'root' I [29/Oct/2004:16:28:40 +0200] Adding start banner page "none" to job 79. I [29/Oct/2004:16:28:40 +0200] Adding end banner page "none" to job 79. I [29/Oct/2004:16:28:40 +0200] Job 79 queued on 'oce3155' by 'root'. D [29/Oct/2004:16:28:40 +0200] Job 79 hold_until = 0 D [29/Oct/2004:16:28:40 +0200] StartJob(79, 0x8178fa8) D [29/Oct/2004:16:28:40 +0200] StartJob() id = 79, file = 0/1 D [29/Oct/2004:16:28:40 +0200] job-sheets=none,none D [29/Oct/2004:16:28:40 +0200] banner_page = 0 D [29/Oct/2004:16:28:40 +0200] StartJob: argv = "oce3155","79","root","280x196.hp2","1","orientation-requested=4 nomirror scaling=100 fitplot blackplot penwidth=10000 noprettyprint wrap","/var/spool/cups/d00079-001" D [29/Oct/2004:16:28:40 +0200] StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin" D [29/Oct/2004:16:28:40 +0200] StartJob: envp[1]="SOFTWARE=CUPS/1.1" D [29/Oct/2004:16:28:40 +0200] StartJob: envp[2]="USER=root" D [29/Oct/2004:16:28:40 +0200] StartJob: envp[3]="CHARSET=iso-8859-1" D [29/Oct/2004:16:28:40 +0200] StartJob: envp[4]="LANG=en" D [29/Oct/2004:16:28:40 +0200] StartJob: envp[5]="TZ=Europe/Berlin" D [29/Oct/2004:16:28:40 +0200] StartJob: envp[6]="PPD=/etc/cups/ppd/oce3155.ppd" D [29/Oct/2004:16:28:40 +0200] StartJob: envp[7]="CUPS_SERVERROOT=/etc/cups" D [29/Oct/2004:16:28:40 +0200] StartJob: envp[8]="RIP_MAX_CACHE=328m" D [29/Oct/2004:16:28:40 +0200] StartJob: envp[9]="TMPDIR=/var/spool/cups/tmp" D [29/Oct/2004:16:28:40 +0200] StartJob: envp[10]="CONTENT_TYPE=application/vnd.hp-hpgl" D [29/Oct/2004:16:28:40 +0200] StartJob: envp[11]="DEVICE_URI=lpd://172.23.80.107/oce_1200_K" D [29/Oct/2004:16:28:40 +0200] StartJob: envp[12]="PRINTER=oce3155" D [29/Oct/2004:16:28:40 +0200] StartJob: envp[13]="CUPS_DATADIR=/usr/share/cups" D [29/Oct/2004:16:28:40 +0200] StartJob: envp[14]="CUPS_FONTPATH=/usr/share/cups/fonts" D [29/Oct/2004:16:28:40 +0200] StartJob: envp[15]="CUPS_SERVER=localhost" D [29/Oct/2004:16:28:40 +0200] StartJob: envp[16]="IPP_PORT=631" D [29/Oct/2004:16:28:40 +0200] StartJob: statusfds = [ 10 12 ] D [29/Oct/2004:16:28:40 +0200] StartJob: filterfds[1] = [ 13 -1 ] D [29/Oct/2004:16:28:40 +0200] StartJob: filter = "/usr/lib/cups/filter/hpgltops" D [29/Oct/2004:16:28:40 +0200] StartJob: filterfds[0] = [ 14 15 ] D [29/Oct/2004:16:28:40 +0200] start_process("/usr/lib/cups/filter/hpgltops", 0xbffefd50, 0xbffef0c0, 13, 15, 12) I [29/Oct/2004:16:28:40 +0200] Started filter /usr/lib/cups/filter/hpgltops (PID 7497) for job 79. D [29/Oct/2004:16:28:40 +0200] StartJob: filter = "/usr/lib/cups/filter/pstops" D [29/Oct/2004:16:28:40 +0200] StartJob: filterfds[1] = [ 13 16 ] D [29/Oct/2004:16:28:40 +0200] start_process("/usr/lib/cups/filter/pstops", 0xbffefd50, 0xbffef0c0, 14, 16, 12) I [29/Oct/2004:16:28:40 +0200] Started filter /usr/lib/cups/filter/pstops (PID 7498) for job 79. D [29/Oct/2004:16:28:40 +0200] StartJob: backend = "/usr/lib/cups/backend/lpd" D [29/Oct/2004:16:28:40 +0200] StartJob: filterfds[0] = [ -1 14 ] D [29/Oct/2004:16:28:40 +0200] start_process("/usr/lib/cups/backend/lpd", 0xbffefd50, 0xbffef0c0, 13, 14, 12) I [29/Oct/2004:16:28:40 +0200] Started backend /usr/lib/cups/backend/lpd (PID 7499) for job 79. D [29/Oct/2004:16:28:40 +0200] ProcessIPPRequest: 8 status_code=0 D [29/Oct/2004:16:28:40 +0200] [Job 79] Page = 595x842; 13,14 to 582,828 D [29/Oct/2004:16:28:40 +0200] [Job 79] Page = 595x842; 13,14 to 582,828 D [29/Oct/2004:16:28:40 +0200] [Job 79] slowcollate=0, slowduplex=0, sloworder=0 D [29/Oct/2004:16:28:40 +0200] [Job 79] 0 %%BoundingBox: 14 13 828 582 D [29/Oct/2004:16:28:40 +0200] [Job 79] 0 %%Pages: (atend) D [29/Oct/2004:16:28:40 +0200] [Job 79] 0 %%LanguageLevel: 2 D [29/Oct/2004:16:28:40 +0200] [Job 79] page_width = 813, page_height = 569 D [29/Oct/2004:16:28:40 +0200] [Job 79] page_width = 813, page_height = 569 D [29/Oct/2004:16:28:40 +0200] [Job 79] page_width = 813, page_height = 569 D [29/Oct/2004:16:28:40 +0200] [Job 79] page_width = 813, page_height = 569 D [29/Oct/2004:16:28:40 +0200] [Job 79] Transform = [ 0.068 0.000 D [29/Oct/2004:16:28:40 +0200] [Job 79] 0.000 0.068 D [29/Oct/2004:16:28:40 +0200] [Job 79] -0.000 -0.000 ] D [29/Oct/2004:16:28:40 +0200] [Job 79] page_width = 813, page_height = 569 D [29/Oct/2004:16:28:40 +0200] [Job 79] Transform = [ 0.068 0.000 D [29/Oct/2004:16:28:40 +0200] [Job 79] 0.000 0.068 D [29/Oct/2004:16:28:40 +0200] [Job 79] -0.000 -0.000 ] D [29/Oct/2004:16:28:40 +0200] [Job 79] 0 %%DocumentData: Clean7Bit D [29/Oct/2004:16:28:40 +0200] [Job 79] 0 %%DocumentSuppliedResources: procset hpgltops 1.1 0 D [29/Oct/2004:16:28:40 +0200] [Job 79] 0 %%DocumentNeededResources: font Courier Helvetica D [29/Oct/2004:16:28:40 +0200] [Job 79] 0 %%Creator: hpgltops/CUPS v1.1.20 D [29/Oct/2004:16:28:40 +0200] [Job 79] 0 %%CreationDate: Fri Oct 29 16:28:40 2004 D [29/Oct/2004:16:28:40 +0200] [Job 79] 0 %%Title: 280x196.hp2 D [29/Oct/2004:16:28:40 +0200] [Job 79] 0 %%For: root D [29/Oct/2004:16:28:40 +0200] [Job 79] 0 %%EndComments D [29/Oct/2004:16:28:40 +0200] [Job 79] 0 %%BeginProlog D [29/Oct/2004:16:28:40 +0200] [Job 79] 0 %%BeginResource: procset hpgltops 1.1 0 D [29/Oct/2004:16:28:40 +0200] [Job 79] 0 %%EndResource D [29/Oct/2004:16:28:40 +0200] [Job 79] 0 %%EndProlog D [29/Oct/2004:16:28:40 +0200] [Job 79] 0 %%Trailer D [29/Oct/2004:16:28:40 +0200] [Job 79] 0 %%Pages: 0 D [29/Oct/2004:16:28:40 +0200] [Job 79] 0 %%EOF D [29/Oct/2004:16:28:40 +0200] [Job 79] Connected on ports 515 (local 0)... D [29/Oct/2004:16:28:40 +0200] [Job 79] lpd_command 02 oce_1200_K D [29/Oct/2004:16:28:40 +0200] [Job 79] Sending command string (12 bytes)... D [29/Oct/2004:16:28:40 +0200] [Job 79] Reading command status... D [29/Oct/2004:16:28:40 +0200] [Job 79] lpd_command returning 0 D [29/Oct/2004:16:28:40 +0200] [Job 79] Control file is: D [29/Oct/2004:16:28:40 +0200] [Job 79] Hiavc-prts4 D [29/Oct/2004:16:28:40 +0200] [Job 79] Proot D [29/Oct/2004:16:28:40 +0200] [Job 79] J280x196_hp2 D [29/Oct/2004:16:28:40 +0200] [Job 79] ldfA499iavc-prts4 D [29/Oct/2004:16:28:40 +0200] [Job 79] UdfA499iavc-prts4 D [29/Oct/2004:16:28:40 +0200] [Job 79] N280x196_hp2 D [29/Oct/2004:16:28:40 +0200] [Job 79] lpd_command 02 80 cfA499iavc-prts4 D [29/Oct/2004:16:28:40 +0200] [Job 79] Sending command string (21 bytes)... D [29/Oct/2004:16:28:40 +0200] [Job 79] Reading command status... D [29/Oct/2004:16:28:40 +0200] [Job 79] lpd_command returning 0 D [29/Oct/2004:16:28:40 +0200] [Job 79] lpd_command 03 2901 dfA499iavc-prts4 D [29/Oct/2004:16:28:40 +0200] [Job 79] Sending command string (23 bytes)... D [29/Oct/2004:16:28:40 +0200] [Job 79] Reading command status... D [29/Oct/2004:16:28:40 +0200] [Job 79] lpd_command returning 0 D [29/Oct/2004:16:28:40 +0200] UpdateJob: job 79, file 0 is complete. D [29/Oct/2004:16:28:40 +0200] CancelJob: id = 79 D [29/Oct/2004:16:28:40 +0200] StopJob: id = 79, force = 0 D [29/Oct/2004:16:28:40 +0200] StopJob: printer state is 3


Here I provide this testfile its hp2 280x207mm. I printed out this file at a other system (selfcompiled cups 1.20) there was ok !!!

michaelrsweet commented 19 years ago

CUPS.org User: mike

Please post all ESP Print Pro support requests to the following page:

http://www.easysw.com/support.php

Note, however, that our offices are currently closed, so you will likely not receive a response until January 3rd.

The file you attached indicates that no pages were found in the HP-GL/2 file. This almost certainly means that you are trying to print an HP-RTL file (a different type of file which shares some of the HP-GL/2 commands) which is not supported by the HP-GL/2 filter.

You can try printing with the "-oraw" option to bypass this filter and get the file printed.