LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] PDF Creation

[ILUG] PDF Creation

Liam Bedford lbedford at lbedford.org
Fri Apr 27 10:42:15 IST 2001


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.





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell