PDF Creator/Shared Printer
Ben Pfaff
pfaffben@msu.edu
07 Oct 2000 21:38:38 -0400
"Jason Watson" <jaywatts@hotmail.com> writes:
> I get this same error on all the PDF files I make with the virtual printer
> scheme. Is it not possible to use ps2pdf as a filter with lpd or is there a
> way to make lpd send a file instead of using STDIN?
Off the top of my head, something like this could work:
p=`basename $0`
TMP1=`mktemp /tmp/$p.XXXXXX`
TMP2=`mktemp /tmp/$p.XXXXXX`
cat > $TMP1
ps2pdf $TMP1 $TMP2
cat $TMP2
rm -f $TMP1 $TMP2
(If you don't have mktemp, substitute something else.)