SLUG Mailing List Archives
[SLUG] pdf sweeper
- To: "Slug@Slug. Org. Au" <slug@xxxxxxxxxxx>
- Subject: [SLUG] pdf sweeper
- From: "Dave Kempe" <david@xxxxxxxxxxxxxxxxxx>
- Date: Sat Sep 23 20:21:10 2000
I'm after a cool way of generating PDF's from a windows box with a Linux
I have found a few ways, so far the most attractive to me seems to be this
The author of this script has seemed to done a good job, tho the mailing
list software has wrapped his work.
This is the script:
(includes the wrapping)
# Postscript to PDF sweeper
# Author: Conor Daly <conor.daly@xxxxxxxxxxxxx>
# Date: 8th June 2000
# Converts any *.ps found in the specified directory to *.pdf and deletes
# Licensing: Use as per GPL
case in $#argv do #not quite sure of the syntax for "case in" "$#argv"
should give the number of arguments passed
case 3); # to the script including "$0" as the name of
do # not quite sure of the infinite loop thing
but "do... done" should do it.
for incoming in `ls *.ps` do
outgoing=`basename $incoming ps`pdf
ps2pdf $incoming $outgoing
rm -f $incoming
echo Useage: $0 <Delay in seconds> <Full path to Directory>
# end of Postscript to PDF Sweeper
The first 3 lins of the script give me problems, I'm not sure of the case
syntax. I tried a fair few combinations but can't seem to get case figured
If anyone can assist that would be great. Or even suggest a better method...
I understand ps2pdf but can't seem to get it working with printcap. Not sure
what entry to use there.
Ph: (02) 9413 9604
Fax: (02) 9413 9719
Mob: 0413 022 143