Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tlug: PS to PCL?



--------------------------------------------------------
tlug note from Steve Dunham <dunham@example.com>
--------------------------------------------------------
Totoro <riley@example.com> writes:

> --------------------------------------------------------
> tlug note from Totoro <riley@example.com>
> --------------------------------------------------------
> After giving up for awhile (I had other things to do!!), I tried
> out the dvilj4 processor today,  and it printed out a very nice
> job on my Japanese HP Laserjet. Apparently PCL is the only format
> other than ascii that will work on this puppy. Question is, are
> there any utilities that can convert files to PCL? All I can find
> is the dvi formatter, but would like to be able to move ps to the
> printable PCL styles, too. Any ideas on accomplishing this? I know
> it's a roundabout way to print, but gs just won't work. Thanks!

gs works fine for me, on my LaserJet 5L. I use dvips to print .dvi
files. It works very well (much faster than real postscript printers), 
I just print the postscript files with "lpr", and ghostscript is
automatically invoked.

The printcap entry looks like:

lp|ps:\
        :sd=/var/spool/lpd/lp:\
        :mx#0:\
        :lp=/dev/lp1:\
        :if=/var/spool/lpd/lp/filter:\
        :sh:


And my /var/spool/lpd/lp/filter is:

#!/bin/sh

DEVICE=ljet4
RESOLUTION=600
PAPERSIZE=letter
SENDEOF=

nenscript -TUS -ZB -p- |
if [ "$DEVICE" = "PostScript" ]; then
	cat -
else
	/usr/bin/gs -q -sDEVICE=$DEVICE \
		-r$RESOLUTION \
		-sPAPERSIZE=$PAPERSIZE \
		-dNOPAUSE \
		-dSAFER \
		-sOutputFile=- -
fi

if [ "$SENDEOF" != "" ]; then
	printf "\004"
fi

exit 0
-----------------------------------------------------------------
a word from the sponsor will appear below
-----------------------------------------------------------------
The TLUG mailing list is proudly sponsored by TWICS - Japan's First
Public-Access Internet System.  Now offering 20,000 yen/year flat
rate Internet access with no time charges.  Full line of corporate
Internet and intranet products are available.   info@example.com
Tel: 03-3351-5977   Fax: 03-3353-6096


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links