Re: Sending output to a laser printer in C
- From: Jan Panteltje <pNaonStpealmtje@xxxxxxxxx>
- Date: Thu, 25 May 2006 21:31:48 GMT
On a sunny day (Thu, 25 May 2006 23:08:43 +0200) it happened Lampa Dario
<lamp@xxxxxxxx> wrote in <44761d15$0$29092$5fc30a8@xxxxxxxxxxxxxxx>:
have a look at this script:
# ASCII to PS
a2ps -o /tmp/a2ps_tmp1.ps -1 --font-size=$2 --portrait --no-header --borders=no $1
/usr/local/bin/gs \
-sDEVICE=ijs \
-sIjsServer=/usr/bin/epijs \
-sOutputFile=/dev/usb/lp0 \
-r360 \
-dIjsDepth=24 \
-sDeviceManufacturer=Epson \
-sDeviceModel='Stylus Photo 2000P' \
-sIjsParams="PageImageFormat=Raster,ByteSex=little-endian" \
-DNOPAUSE \
-dSAFER \
-- \
$1
There are some points, this is a USB printer, and uses /dev/usb/lp0
It uses ghostscript to process postscript, and in this case the 'ijs' Epson
server.
It uses a2ps to convert ASCII text to postscript.
Maybe it will give you some ideas, try USB device?.
There is a very good printing howto somewhere.
.
- References:
- Sending output to a laser printer in C
- From: Lampa Dario
- Sending output to a laser printer in C
- Prev by Date: Sending output to a laser printer in C
- Next by Date: objdump'ed code correspond to C code
- Previous by thread: Sending output to a laser printer in C
- Next by thread: objdump'ed code correspond to C code
- Index(es):