home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp
- Path: sparky!uunet!mcsun!dxcern!hp-osf1!rtb
- From: rtb@hp-osf1.cern.ch (Rainer Toebbicke)
- Subject: Re: PCL to PostScript translator
- Message-ID: <rtb.726403979@hp-osf1>
- Sender: news@dxcern.cern.ch (USENET News System)
- Organization: CERN European Lab for Particle Physics
- References: <86239@ut-emx.uucp> <FURNISH.93Jan7002216@dino.ph.utexas.edu>
- Date: Thu, 7 Jan 1993 10:52:59 GMT
- Lines: 55
-
- In <FURNISH.93Jan7002216@dino.ph.utexas.edu> furnish@dino.ph.utexas.edu (Geoffrey Furnish) writes:
-
-
- > According to the Response Center, LaserROM will only send output in
- > PCL format (LaserJet et. al.) This means we cannot print formatted
- > output from the LaserROM to our printers. We do not have a
- > LaserJet available, and the LaserWriters are dedicated to
- > PostScript and thus cannot be set to PCL mode.
-
- > We are looking for a filter that will convert PCL formating to
- > postscript, or even to "dumb" printer formatting (overstrike and
- > backspace). If anyone knows of a solution, I would be most
- > grateful to hear from you.
-
- ...
-
- >At my site, we do have a printer which can do PCL, but it is not
- >possible to configure lp to automatically kick it into PCL mode (don't
- >ask--you don't really want to know...). If I could only get LaseROM
- >or LROM to write the PCL formatted stuff to a _file_ instead of only
- >to a printer, I could do what I need.
-
- In principle at least the LaserWriter II NTX (and probably other models
- except the older ones) can emulate an HP LaserJet. This is documented to work
- when the printer is connected via a serial line and the corresponding switch
- set.
-
- We print to LaserWriters connected to AppleTalk using the CAP software.
- What I use is a PostScript header which turns HPLJ emulation on and append the PCL file.
- Getting the PCL file should not be so complicated despite what has been said:
- just write a trivial printer model which writes to a file instead of a printer.
- Or modify the PostScript printer model you use to send the header first.
-
- The header I use is:
-
- %!
- serverdict /exechplj known not
- { (Error: no LaserWriter emulation available on this printer) = flush crash } if
- serverdict begin statusdict begin LaserJetEmuDict begin exechplj
- ^[&k3G
-
- (where the ^[ is of course an escape, x'1b')
- I have tried this only on a LaserWriter NTX and only connected to AppleTalk.
- It prints HPLJ graphics produced by a few PC programs I tested, although some
- of these programs cause problems when they invert the CRLF sequence.
- I could print LRom pages, including pages with graphics, but had problems
- on some which I did not investigate much further: I vaguely remember that a
- particular escape sequence was not understood, resulting in a PostScript error.
- Removing that sequence cleared the problem.
- Since my method does not seem to be an officially supported one I did
- not insist.
- --
- Rainer Toebbicke - rtb@dxcern.cern.ch - rtb@cernvm.bitnet
- European Laboratory for Particle Physics - CERN
- Geneva, Switzerland
-