Skip to content

Instantly share code, notes, and snippets.

@gramian
Created November 15, 2017 08:22
Convert all files in a directory from eps to pdf and crop the pdf to minimum area.
#!/bin/sh
for i in *.eps; do
epspdf ${i}
done
for i in *.pdf; do
pdfcrop ${i} ${i}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment