converting problems

zuecks zuecks
Tue Nov 16 07:36:08 PST 2004


Hi there,

I having problems with convert hp2 to ps . You can see in error_log, the filter starts, but when I print to file, its generated no reasonable postscript.

########################  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


#####################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 at 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
---------------------------------------
but when I send a job to a printer, I get follow error with a piece of Paper.
Adobe Postscript –Error
Identification undefined
Offending command –get—
Operand Stack Top /ESPsave
Top-1/userdict

What should I do, maybe anyone can help ?

Thank you Frank






More information about the cups mailing list