Want to automatically convert a few PDF files to EPS? Turns out there's various programs to try that each give a slightly different result... With that in mind here's a bash script that tries a few methods allowing you to find which works for your file (OS X specific). Current methods attempted:
- Inkscape
- Command-line version required
- Good conversion, tight trimming
- ImageMagick
- Install with homebrew:
brew install imagemagick
- Nightmarish results
- ghostscript
- Install with homebrew:
brew install ghostscript
- Good conversion + respects PDF bounding
- pdftops
- Part of xpdf
- Similar decent results to ghostscript
./pdf2eps example_file.pdf
Other than those above, GNU tools should be installed (e.g. grealpath
). Install these with homebrew:
brew install coreutils