cannot print file with escape sequences

colindaly at hotmail.com colindaly at hotmail.com
Tue Sep 7 02:37:38 PDT 2004


Helge,
When I use the "-o document-format=text/plain" option, the document prints, but it does not interpret the PCL string at the start of the file (I suppose this is expected behaviour).

The the file prints the PCL string: -
d0D .... d@ on the first line. I believe this is PCL code for automatic underline (when I do a vi on the file, i see that the full string is "^[&d0D BERNAFS    01/07/04 07:46 ^[&d@".

When I configure the printer to use the "RAW" driver, the underline succeeds but the rest of the document format is lost (including landscape option).

I don't know why the cups uses the HPGL driver.

Rgds,
Colin




Helge Blischke wrote:
> Try to add "-o document-format=text/plain" to the options of the
> lp command (without the quotes) and see what happens then. You error
> log inidcates that the file to be printed is interpreted as HPGL, but
> you say it is a text file ...
>
> Helge
>
>
> colindaly at hotmail.com wrote:
> >
> > Hello,
> >
> > My HP Laserjet 8000 DN printers are able to print most files via CUPS.  However, I have one file in particular which will not print via CUPS.  The pdf file prints ok when I use Windows or Xprint.
> >
> > After the print command is issued, all i get is a brief flash of the green 'data' light on the printer.  Nothing at all gets printed.
> >
> > Here is my setup: -
> > ########################
> >
> > cups version: version 1.1.20
> >
> > Printer Type: HP Laserjet 8000 DN
> >
> > Print Cmd: cat /tmp/gestel_bon |  lp -d pr9pc -ol -ofp16.5
> >
> > PPD file:
> > # cat /etc/cups/ppd/pr9pc.ppd | grep Nick
> > *ShortNickName: "HP LaserJet 8000 Series PS"
> > *NickName:      "HP LaserJet 8000 Series PS"
> > # cat /etc/cups/ppd/pr9pc.ppd | grep Adobe
> > *PPD-Adobe: "4.3"
> > #
> >
> > Print file: file /tmp/gestel_bon
> > /tmp/gestel_bon: ISO-8859 text, with escape sequences
> >
> > Log file: /var/log/cups/error.log
> >  [06/Sep/2004:11:44:40 +0200] Job 299 queued on 'pr9pc' by 'root'.
> >  D [06/Sep/2004:11:44:40 +0200] Job 299 hold_until = 0
> >  D [06/Sep/2004:11:44:40 +0200] StartJob(299, 0x80c8dc8)
> >  D [06/Sep/2004:11:44:40 +0200] StartJob() id = 299, file = 0/1
> >  D [06/Sep/2004:11:44:40 +0200] job-sheets=none,none
> >  D [06/Sep/2004:11:44:40 +0200] banner_page = 0
> >  D [06/Sep/2004:11:44:40 +0200] StartJob: argv =
> >  "pr9pc","299","root","STDIN","1","page-top=36 page-bottom=36 page-left=36
> >  page-right=36 cpi=12 lpi=7 wrap scaling=100 l
> >  fp16.5","/var/spool/cups/d00299-001"
> >  D [06/Sep/2004:11:44:40 +0200] StartJob: envp =
> >  "PATH=/usr/lib/cups/filter:/bin:/usr/bin","SOFTWARE=CUPS/1.1","USER=root","CHARSET=iso-8859-1","LANG=en_BE","","PPD=/etc/cups/ppd/pr9pc.ppd","CUPS_SERVERROOT=/etc/cups","RIP_MAX_CACHE=8m","TMPDIR=/var/spool/cups/tmp","CONTENT_TYPE=application/vnd.hp-hpgl","DEVICE_URI=lpd://pr9pc/lp","PRINTER=pr9pc","CUPS_DATADIR=/usr/share/cups","CUPS_FONTPATH=/usr/share/cups/fonts","","NLSPATH=/usr/share/locale/%l/%N","",""
> >  D [06/Sep/2004:11:44:40 +0200] StartJob: statusfds = 9, 10
> >  D [06/Sep/2004:11:44:40 +0200] StartJob: filterfds[1] = 11, -1
> >  D [06/Sep/2004:11:44:40 +0200] StartJob: filter =
> >  "/usr/lib/cups/filter/hpgltops"
> >  D [06/Sep/2004:11:44:40 +0200] StartJob: filterfds[0] = 12, 13
> >  D [06/Sep/2004:11:44:40 +0200] start_process("/usr/lib/cups/filter/hpgltops",
> >  0xbffef960, 0xbffeee00, 11, 13, 10)
> >  I [06/Sep/2004:11:44:40 +0200] Started filter /usr/lib/cups/filter/hpgltops
> >  (PID 10731) for job 299.
> >  D [06/Sep/2004:11:44:40 +0200] StartJob: filter =
> >  "/usr/lib/cups/filter/pstops"
> >  D [06/Sep/2004:11:44:40 +0200] StartJob: filterfds[1] = 11, 14
> >  D [06/Sep/2004:11:44:40 +0200] start_process("/usr/lib/cups/filter/pstops",
> >  0xbffef960, 0xbffeee00, 12, 14, 10)
> >  I [06/Sep/2004:11:44:40 +0200] Started filter /usr/lib/cups/filter/pstops
> >  (PID 10732) for job 299.
> >  D [06/Sep/2004:11:44:40 +0200] StartJob: backend =
> >  "/usr/lib/cups/backend/lpd"
> >  D [06/Sep/2004:11:44:40 +0200] StartJob: filterfds[0] = -1, 12
> >  D [06/Sep/2004:11:44:40 +0200] start_process("/usr/lib/cups/backend/lpd",
> >  0xbffef960, 0xbffeee00, 11, 12, 10)
> >  I [06/Sep/2004:11:44:40 +0200] Started backend /usr/lib/cups/backend/lpd (PID
> >  10733) for job 299.
> >  D [06/Sep/2004:11:44:40 +0200] ProcessIPPRequest: 7 status_code=0
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Page = 612x792; 12,12 to 600,780
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] page_width = 0, page_height = 0
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] page_width = 0, page_height = 0
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] page_width = 0, page_height = 0
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] page_width = 540, page_height = 720
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Transform = [ 0.071 0.000
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0.000 0.071
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] -36.000 -36.000 ]
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] page_width = 540, page_height = 720
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Transform = [ 0.071 0.000
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0.000 0.071
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] -36.000 -36.000 ]
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] page_width = 540, page_height = 720
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Transform = [ 0.071 0.000
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0.000 0.071
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] -36.000 -36.000 ]
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] page_width = 540, page_height = 720
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Transform = [ 0.071 0.000
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0.000 0.071
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] -36.000 -36.000 ]
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] page_width = 540, page_height = 720
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Transform = [ 0.071 0.000
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0.000 0.071
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] -36.000 -36.000 ]
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] page_width = 540, page_height = 720
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Transform = [ 0.071 0.000
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0.000 0.071
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] -36.000 -36.000 ]
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] page_width = 540, page_height = 720
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Transform = [ 0.071 0.000
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0.000 0.071
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] -36.000 -36.000 ]
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] page_width = 540, page_height = 720
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Transform = [ 0.071 0.000
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0.000 0.071
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] -36.000 -36.000 ]
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] page_width = 540, page_height = 720
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Transform = [ 0.071 0.000
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0.000 0.071
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] -36.000 -36.000 ]
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] page_width = 540, page_height = 720
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Transform = [ 0.071 0.000
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0.000 0.071
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] -36.000 -36.000 ]
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] page_width = 540, page_height = 720
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Transform = [ 0.071 0.000
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0.000 0.071
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] -36.000 -36.000 ]
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] page_width = 540, page_height = 720
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Transform = [ 0.071 0.000
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0.000 0.071
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] -36.000 -36.000 ]
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] page_width = 540, page_height = 720
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Transform = [ 0.071 0.000
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0.000 0.071
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] -36.000 -36.000 ]
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] page_width = 540, page_height = 720
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Transform = [ 0.071 0.000
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0.000 0.071
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] -36.000 -36.000 ]
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] page_width = 540, page_height = 720
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Transform = [ 0.071 0.000
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0.000 0.071
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] -36.000 -36.000 ]
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] page_width = 540, page_height = 720
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Transform = [ 0.071 0.000
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0.000 0.071
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] -36.000 -36.000 ]
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] page_width = 540, page_height = 720
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Transform = [ 0.071 0.000
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0.000 0.071
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] -36.000 -36.000 ]
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] page_width = 540, page_height = 720
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Transform = [ 0.071 0.000
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0.000 0.071
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] -36.000 -36.000 ]
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Page = 612x792; 12,12 to 600,780
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] slowcollate=0, slowduplex=0,
> >  sloworder=0
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0 %%BoundingBox: 36 36 576 756
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0 %%Pages: (atend)
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0 %%LanguageLevel: 2
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0 %%DocumentData: Clean7Bit
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0 %%DocumentSuppliedResources:
> >  procset hpgltops 1.1 0
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0 %%DocumentNeededResources: font
> >  Courier Helvetica
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0 %%Creator: hpgltops/CUPS v1.1.19
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0 %%CreationDate: Mon 06 Sep 2004
> >  11:44:40 CEST
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0 %%Title: STDIN
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0 %%For: root
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0 %%EndComments
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0 %%BeginProlog
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0 %%BeginResource: procset hpgltops
> >  1.1 0
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0 %%EndResource
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0 %%EndProlog
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0 %%Trailer
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0 %%Pages: 0
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] 0 %%EOF
> >  D [06/Sep/2004:11:44:40 +0200] CloseClient() 7
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] lpd_command 02 lp
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Sending command string (4 bytes)...
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Reading command status...
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] lpd_command returning 0
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Control file is:
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Hanalog.cc.cec.eu.int
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Proot
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] JSTDIN
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] ldfA733analog.cc.cec.eu.int
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] UdfA733analog.cc.cec.eu.int
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] NSTDIN
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] lpd_command 02 98
> >  cfA733analog.cc.cec.eu.int
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Sending command string (31 bytes)...
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Reading command status...
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] lpd_command returning 0
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] lpd_command 03 6814
> >  dfA733analog.cc.cec.eu.int
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Sending command string (33 bytes)...
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] Reading command status...
> >  D [06/Sep/2004:11:44:40 +0200] [Job 299] lpd_command returning 0
> >  D [06/Sep/2004:11:44:40 +0200] UpdateJob: job 299, file 0 is complete.
> >  D [06/Sep/2004:11:44:40 +0200] CancelJob: id = 299
> >  D [06/Sep/2004:11:44:40 +0200] StopJob: id = 299, force = 0
> >  D [06/Sep/2004:11:44:40 +0200] StopJob: printer state is 3
> >
> > Perhaps the file itself is somehow corrupted, but this doesn't make sense because it prints of from Xprint and windows.
> >
> > Thanks in advance,
> > Colin
>
> --
> H.Blischke at srz-berlin.de
> H.Blischke at srz-berlin.com
> H.Blischke at acm.org





More information about the cups mailing list