Skip to content

Instantly share code, notes, and snippets.

@halcwb
Created June 29, 2016 09:35
Show Gist options
  • Save halcwb/991851aefa78675238ee3e5b3e289ba6 to your computer and use it in GitHub Desktop.
Save halcwb/991851aefa78675238ee3e5b3e289ba6 to your computer and use it in GitHub Desktop.
Convert a pdf file to eps
#!/bin/sh
# $Id: pdf2eps,v 0.01 2005/10/28 00:55:46 Herbert Voss Exp $
# Convert PDF to encapsulated PostScript.
# usage:
# pdf2eps <page number> <pdf file without ext>
pdfcrop $2.pdf
pdftops -f $1 -l $1 -eps "$2-crop.pdf"
rm "$2-crop.pdf"
mv "$2-crop.eps" $2.eps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment