Skip to content

Instantly share code, notes, and snippets.

@marcellmars
Created July 29, 2010 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcellmars/499150 to your computer and use it in GitHub Desktop.
Save marcellmars/499150 to your computer and use it in GitHub Desktop.
make one pdf from bunch of jpegs (dirty, not prepared as generic script)
for i in *; do jpegtopnm $i > $i.pnm;done
for i in *.pnm;do pnmtops $i > $i.ps;done
for i in *.ps;do ps2pdf $i $i.pdf;done
gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=contract.pdf -dBATCH contract002.jpg.pnm.ps.pdf contract002-1.jpg.pnm.ps.pdf contract002-2.jpg.pnm.ps.pdf contract002-3.jpg.pnm.ps.pdf contract002-4.jpg.pnm.ps.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment