I have postscript PS images and have written a macro to convert to PDF and then crop to their boundingbox size. The code works fine, but I imagine there is a more straightforward way of doing this. Any help, appreciated. Thanks.
echo 'Convert all PS to PDF in current directory and then crop according to the DAVE
sizes (5x4in) 1.75,3.5in offset: in standard PS Letter size'
for f in *.ps
ps2pdf -dEPSCrop "$f"
for g in *.pdf
pdfcrop --margins "10 10 10 10" "$g"