Skip to content

Instantly share code, notes, and snippets.

@spikeekips
Last active April 16, 2016 07:42
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 spikeekips/0a2370d948a122e06e2170f609805557 to your computer and use it in GitHub Desktop.
Save spikeekips/0a2370d948a122e06e2170f609805557 to your computer and use it in GitHub Desktop.
Convert multiple images to pdf
# from http://xmodulo.com/convert-jpg-image-file-to-pdf-format-on-linux.html
# install ghostscript
gs -sDEVICE=pdfwrite -o output.pdf /usr/share/ghostscript/8.71/lib/viewjpeg.ps -c "(intput1.jpg) viewJPEG showpage (input2.jpg) viewJPEG showpage (intput3.jpg) viewJPEG showpage"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment