Re: printer prints postscript literally

[email protected] (Haines Brown)
Newsgroups gmane.comp.web.galeon.user
Message-ID <[email protected]>
> On Fri, 2005-05-27 at 20:49 -0400, Haines Brown wrote:
> > When I print a web page displayed in a browser, I get many pages of
> > the literal postscript file contents.
> 
> Very few of us use LPRng or LPR anymore, so I can't give you advice on
> how to fix that.

Is the implication here that most people use cups? That would come as
a surprise, for I thought it was primarily for networked printers. Are
you suggesting that even for a stand-alone machine, it is a more
effective way to print?

>  The cause of the problem is that LPR is not properly
> detecting the postscript stream and converting it to PCL or whatever
> your printer speaks.
> 
> Since gnumeric and others can print, I'd try printing from galeon to a
> file and then cat that to the printer (cat /tmp/output.ps | lpr ).  See
> if that prints normally.  If not, try running "ps2ps output.ps - | lpr".
> If that works at least you'll have a workaround.

The print operation just blinked data light on the printer with
copying the ps file. So tried ps2ps. It prints, but only prints an
error. In the terminal, I get:

  $ ps2ps galeon-test.ps - | lpr
  GPL Ghostscript 8.01: Unrecoverable error, exit code 1

In the printed page I get:

  Error: /undefinedfilename in (galeon-test.ps) Operand stack:
  Execution stack: %i... (with stepping, that's all I got to print)

I can use gv galeon-test.ps to display the file properly, however. 

Sorry that this seems to settle down on an lpr problem, which is OT. 
I assume lpr is not broken, and you did not say there were problems in
my printcap, and so is the implication that there is am error in my
postscript file having to do with a missing filename? Still no log
errors. 

  %!PS-Adobe-3.0
  ...
  /setpagedevice where
  { pop 1 dict
    dup /PageSize [ 419.55 595.25 ] put
    setpagedevice
  } if
  [ /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
  ...
   
The ps file seems to see some of the text data being printed, but only
a small part of it (shouldn't the .ps file contain all the data being
printed?). It also seeks font files, and I wonder if the problem may
lay there. 

Haines Brown 



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.