At 18:33 26/04/2001 +0000, Conor Daly wrote:
>On Thu, Apr 26, 2001 at 04:52:36PM +0100 or thereabouts, Declan Grady wrote:
> > Is there anyhting available which can run like a print server, but create
> > PDF files, instead of producing printed output ?
> >
> > Thinking of an smb print server, for windows clients, with one HP printer,
> > and one PDF-Writer -like printer.
> >
> > Whats the catch ?
>>Yeah, did that. May still have scripts lying around. They'll be in the
>ILUG archive though.
>>#!/bin/bash
>>loop: #Does this work in bash?
>for i in `*.ps`; do
>ps2pdf $i > `basename $i ps`pdf
hmmm.. will this ps2pdf program take stdin?
if so, what about using printcap to do it:
pdf:\
:sd=/var/spool/lpd/pdf:lp=/dev/null:of=/var/spool/lpd/pdf/filter:
and in /var/spool/lpd/pdf/filter have:
TMPFILE=`mktemp /tmp/output.XXXXXX`
ps2pdf - > $TMPFILE
cp $TMPFILE wherever (and rename it to whatever)
L.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!