[comp.sys.atari.st] what's a prn_1000 file?

yegerleh@vivaldi.ecn.purdue.edu (James D Yegerlehner) (06/28/91)

I just noticed the discussion about Ghostscript.  You guys said
it takes PS files and converts them into prn_1000 files.  What is
a prn_1000 file?   Is there some way of making it produce bitmap
files for dot matrix printers or an HP Deskjet?

Thanks,
Jim

--
__  __               |    |               
 \  / __  __  __  __ | __ |__  __  __  __      Jim Yegerlehner 
  \/ |--'|  ||--'|   ||--'|  ||  ||--'|        1132 Hawkins Graduate House 
   | `-- `--|`-- |   |`-- |  ||  |`-- |        W. Lafayette  IN 47906

gjh@hplb.hpl.hp.com (Graham Higgins) (06/28/91)

++ I just noticed the discussion about Ghostscript.  You guys said
++ it takes PS files and converts them into prn_1000 files.  What is
++ a prn_1000 file?   

Its a bitmap file.

++ Is there some way of making it produce bitmap files for dot matrix printers
++ or an HP Deskjet?

See above. 

If dot matrix = Epson then yes. 
If printer = HPDJ or HPLJ then yes.

Graham
======

------------------------------------------------------------------
Graham Higgins                  |  gjh%ghiggins@hpl.hp.co.uk
Hewlett-Packard Labs            |  gjh%ghiggins@hplb.hpl.hp.com
Filton Road, Stoke Gifford      |  gjh%hplb.csnet@csnet-relay.arpa 
Bristol, U.K.                   |  ...!mcvax!ukc!hplb!gjh          
Tel: +44 272 799910 x24014         Fax: +44 272 790554             
------------------------------------------------------------------
Disclaimer: My opinions above are exactly that, mine and opinions.
------------------------------------------------------------------

marc@sequoia.cray.com (Marc Bouron) (06/28/91)

In article <1991Jun28.024417.17650@noose.ecn.purdue.edu>, yegerleh@vivaldi.ecn.purdue.edu (James D Yegerlehner) writes:
> 
> I just noticed the discussion about Ghostscript.  You guys said
> it takes PS files and converts them into prn_1000 files.  What is
> a prn_1000 file?   Is there some way of making it produce bitmap
> files for dot matrix printers or an HP Deskjet?

There are drivers for Epson and Desk/Laserjet printers.  The `prn_xxxx' files
are produced by GS for dumping to the relevant printer.

> Thanks,
> Jim
> 
> --
> __  __               |    |               
>  \  / __  __  __  __ | __ |__  __  __  __      Jim Yegerlehner 
>   \/ |--'|  ||--'|   ||--'|  ||  ||--'|        1132 Hawkins Graduate House 
>    | `-- `--|`-- |   |`-- |  ||  |`-- |        W. Lafayette  IN 47906

[M][a][r][c]


################################################################################
#                           #  marc@sequoia.cray.com           #     .   .     #
#  Marc CR Bouron           #  M.Bouron@cray.co.uk     (ARPA)  #    _|\ /|_    #
#  Cray Research (UK) Ltd.  #  M.Bouron@crayuk.uucp  (DOMAIN)  #   (_|_V_|_)   #
#  +44 344 485971 x2208     #  M.Bouron@uk.co.cray    (JANET)  #     |   |     #
#                           #  ...!ukc!crayuk!M.Bouron (UUCP)  #               #
################################################################################

lsmichae@immd4.informatik.uni-erlangen.de (Lars Michael) (06/28/91)

yegerleh@vivaldi.ecn.purdue.edu (James D Yegerlehner) writes:

>I just noticed the discussion about Ghostscript.  You guys said
>it takes PS files and converts them into prn_1000 files.  What is
>a prn_1000 file?

It's just the default name of the output file of gs.ttp.

>                  Is there some way of making it produce bitmap
>files for dot matrix printers or an HP Deskjet?

The GS package at atari.archive includes three different printer
driver: for LaserJet printer, for DeskJet printer and for Epson
printer.
---

								Lars

+----------------------------------------+----------------------------------+
|     lsmichae@faui43.uni-erlangen.de    |    | | |                         |
|             Lars Michael               |    | | |   "Down with ATARI,     |
|  Graduate Student of Computer Science  |   /  |  \  Long live the ST !"   |
|    at University of Erlangen/Germany   |  /   |   \                       |
+----------------------------------------+----------------------------------|
|  "May the Schwartz be with you!"                                          |
+---------------------------------------------------------------------------+

rosenkra@convex.com (William Rosencranz) (06/30/91)

In article <GJH.91Jun28093319@ghiggins.hpl.hp.com> gjh@hplb.hpl.hp.com (Graham Higgins) writes:
>++ Is there some way of making it produce bitmap files for dot matrix printers
>++ or an HP Deskjet?
>
>See above. 
>
>If dot matrix = Epson then yes. 
>If printer = HPDJ or HPLJ then yes.

i just downloaded (at 2400 baud :-( ) ghostscript yesterday to try it
with my Epson LQ-1000. it works well. however, there are a few things to
watch out for:

	1) the print program, pr.ttp, sends what appears to be an eject
	for {desk,laser}jets at the end. this code happens to correspond
	to user-defined characters on Epson. remove it. send "ESC @"
	or formfeed instead.

	2) at least on my LQ, each bitmap file sends an escape for 8/60th
	inch line spacing. this leaves a gap. you want 6/60th inch. again,
	i just hacked pr.c to read first 20-30 chars first, looking for
	the "ESC A 8" sequence and changing it to "ESC A 6", then read
	the file normally. the interline spacing sequence always seems
	to appear near the top of the prn_1xxx file (at least on the 4-5
	files i tried). i also took out the ioctl on stdin since i did
	not use gcc to recompile.

	3) the full ghostscript distribution (i found v2.2 on uunet.uu.net
	in the gnu directory there) contains fonts. helvetica and times
	roman seem ok, though times also seems to be missing some chars
	in the set (non-alphanum chars). you need 2-3 MB for the full
	font set available.

	4) gs epson driver does not make use of the higher density graphics
	modes on the LQ and uses single density (8-pin) mode. crude, and
	not very effective for font sizes below about 16 pts. there is
	no way around this short of redoing the epson driver in gs itself.

	5) interesting side note: good ol' arc 5.21 compresses the .gsf font
	files SMALLER than lharc (the unix versions i have, anyway). :-)

other than that, gs seems excellent so far. enuf to make me want to
finally replace/augment my aging 24-pin with the deskjet! kudos to the
original autors and the ST porters...

-bill
rosenkra@convex.com

--
Bill Rosenkranz            |UUCP: {uunet,texsun}!convex!c1yankee!rosenkra
Convex Computer Corp.      |ARPA: rosenkra%c1yankee@convex.com