home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / hp / 14592 < prev    next >
Encoding:
Text File  |  1993-01-07  |  2.9 KB  |  67 lines

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