PS-Error

Helge Blischke h.blischke at srz.de
Mon Dec 27 06:10:46 PST 2004


The file *does* start with an hex <1B> just preceding the percent sign -
either the font used
inb your mail/news client must show it somehow or the client itself
should provide
a transcription.
The PS file generated by hpgltops (the version of CUPS 1.1.19 is what I
have) works well
ans seems reasonable, but the filter produces some debug messages:
---debug begin---
DEBUG: page_width = 0, page_height = 0
DEBUG: page_width = 0, page_height = 0
DEBUG: page_width = 0, page_height = 0
DEBUG: page_width = 576, page_height = 720
DEBUG: Transform = [ 0.071 0.000
DEBUG:               0.000 0.071
DEBUG:               -18.000 -36.000 ]
DEBUG: page_width = 576, page_height = 720
DEBUG: Transform = [ 0.071 0.000
DEBUG:               0.000 0.071
DEBUG:               -18.000 -36.000 ]
DEBUG: page_width = 576, page_height = 720
DEBUG: Transform = [ 0.071 0.000
DEBUG:               0.000 0.071
DEBUG:               -18.000 -36.000 ]
DEBUG: page_width = 576, page_height = 720
DEBUG: Transform = [ 0.071 0.000
DEBUG:               0.000 0.071
DEBUG:               -18.000 -36.000 ]
DEBUG: page_width = 576, page_height = 720
DEBUG: Transform = [ 0.071 0.000
DEBUG:               0.000 0.071
DEBUG:               -18.000 -36.000 ]
DEBUG: page_width = 576, page_height = 720
DEBUG: Transform = [ 0.071 0.000
DEBUG:               0.000 0.071
DEBUG:               -18.000 -36.000 ]
DEBUG: page_width = 794, page_height = 587
DEBUG: Transform = [ 0.071 0.000
DEBUG:               0.000 0.071
DEBUG:               48.189 14.173 ]
DEBUG: page_width = 794, page_height = 587
DEBUG: Transform = [ 0.071 0.000
DEBUG:               0.000 0.071
DEBUG:               48.189 14.173 ]
DEBUG: Pen 1 0 0 0 = 0.000 0.000 0.000
DEBUG: page_width = 794, page_height = 587
DEBUG: Transform = [ 0.071 0.000
DEBUG:               0.000 0.071
DEBUG:               48.189 14.173 ]
DEBUG: page_width = 794, page_height = 587
DEBUG: Transform = [ 0.071 0.000
DEBUG:               0.000 0.071
DEBUG:               48.189 14.173 ]
---debug end---
which just seems to show up that many HPGL files, just as this one,
start up with what
a perfectionist like me would consider garbage (the collapsed page
definitions and the
repeated page diemensions and coordinatge transformations, all the
same).

And here is the PS file:
---postscript begin---
%!PS-Adobe-3.0
%%BoundingBox: 18 36 594 756
%%Pages: (atend)
%%LanguageLevel: 1
%%DocumentData: Clean7Bit
%%DocumentSuppliedResources: procset hpgltops 1.1 0
%%DocumentNeededResources: font Courier Helvetica
%%Creator: hpgltops/CUPS v1.1.19
%%CreationDate: Montag, 27. Dezember 2004 14:52:22
%%Title: test
%%For: bla
%cupsRotation: 0
%%EndComments
%%BeginProlog
/DefaultPenWidth 2.83 def
3.0 setmiterlimit
%%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
/ST { stroke } bind def
/CP { closepath } bind def
/MP { newpath } bind def
/SP { setlinewidth setrgbcolor } bind def
%%EndResource
%%EndProlog
%%Page: 1 1
/SA {
        /Courier findfont
        [ 0.000000 -0.000000 0.000000 0.000000 0.0 0.0 ] makefont
        setfont
} bind def
/SS {
        /Courier findfont
        [ 11.500000 -0.000000 0.000000 11.500000 0.0 0.0 ] makefont
        setfont
} bind def
SS
3.0 setmiterlimit
0 setlinecap
2 setlinejoin
0.000 0.000 0.000 1.44 SP
gsave
18.0 36.0 translate
MP
-0.000 -0.000 MO
-0.000 586.772 LI
ST
MP
18.850 472.110 MO
19.559 299.551 LI
192.118 300.260 LI
ST
MP
-0.000 -0.000 MO
793.701 -0.000 LI
793.701 586.772 LI
ST
MP
192.827 431.008 MO
192.118 300.260 LI
ST
MP
230.457 163.276 MO
231.024 20.268 LI
ST
MP
230.457 163.276 MO
383.811 163.913 LI
384.378 20.835 LI
83.811 163.913 LI
384.378 20.835 LI
231.024 20.268 LI
ST
MP
396.850 580.323 MO
396.850 6.449 LI
ST
MP
787.181 580.323 MO
6.520 6.449 LI
ST
MP
6.520 293.386 MO
787.819 293.386 LI
ST
MP
192.827 431.008 MO
18.850 472.110 LI
ST
MP
38.906 569.268 MO
168.165 570.685 LI
ST
MP
405.071 570.685 MO
548.079 571.252 LI
548.717 417.898 LI
405.709 417.331 LI
405.071 570.685 LI
ST
MP
168.165 570.685 MO
382.252 570.614 LI
382.110 317.339 LI
36.000 571.394 LI
ST
MP
6.520 580.323 MO
787.181 580.323 LI
787.181 6.449 LI
6.520 6.449 LI
6.520 580.323 LI
787.181 6.449 LI
ST
MP
-0.000 586.772 MO
793.701 586.772 LI
ST
1.44 setlinewidth
ST
1.44 setlinewidth
1.44 setlinewidth
initclip MP 18.000 36.000 MO 18.000 756.000 LI 594.000 756.000 LI
594.000 36.000 LI CP clip
1.000 1.000 1.000 1.44 SP
grestore
showpage
%%Trailer
%%Pages: 1
%%EOF
---postscript end---

Helge


pipitas wrote:
> 
> zuecks wrote:
> 
> > Here I provide a testfile,its hp2 280x207mm
> > Please paste this in in your editor and save.
> 
> Indeed, this doesnt get converted by hpgltops!
> 
> Looks like a hpgltops bug to me.
> 
> Please submit a bug report to http://www.cups.org/str.php
> 
> > #-----Begin hp2_file------
> 
> The beginning of that file should hava an <1B> (in hex).
> I corrected this and was able to convert it to PostScript by
> using the hp2xx utility.
> 
> It may be possible to write a drop-in replacement for hpgltops
> (until it is fixed) by wrapping hp2xx into a shell script.
> 
> > %-1BBPINCR;NP;WU0;SP1;LA1,1,2,5;IP-680,-200,10520,8080SC;PA;LT;LT;PW0.508
> > PC1,0,0,0;LT;PA-680,-200PDPA-680,8080LT;PUPA-414,6462PDPA-404,4027,2031,4037LT;
> > PUPA-680,-200PDPA10520,-200,10520,8080LT;PUPA2041,5882PDPA2031,4037LT;PUPA
> > 2572,2104PDPA2580,86LT;PUPA2572,2104PDPA4736,2113,4744,94,2580,86LT;PUPA
> > 4920,7989PDPA4920,-109LT;PUPA10428,7989PDPA-588,-109LT;PUPA-588,3940PDPA
> > 10437,3940LT;PUPA2041,5882PDPA-414,6462LT;PUPA-131,7833PDPA1693,7853LT;PUPA
> > 5036,7853PDPA7054,7861,7063,5697,5045,5689,5036,7853LT;PUPA1693,7853PDPA
> > 4714,7852,4712,4278,-172,7863LT;PUPA-588,7989PDPA10428,7989,10428,-109,-588,-109
> > ,-588,7989,10428,-109LT;PUPA-680,8080PDPA10520,8080LT;PUPA6331,4568CI317,5;LT;PA
> > 2543,5071CI317,5;LT;PA5084,2877CI762,5;RO;IW;SP0;PG;
> > #-----End--------
> >
> >
> > greetings Frank
> 
> Cheers,
> Kurt Pfeifle

-- 
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de
tel: +49 30 75301-360




More information about the cups mailing list