Created
December 1, 2023 13:20
-
-
Save vhr/c6b191a6288cca6e3a96f2c2e2be0b38 to your computer and use it in GitHub Desktop.
Convert JPEGs to PDF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cp /usr/share/ghostscript/9.55.0/lib/viewjpeg.ps ./ | |
gs \ | |
-dNOSAFER \ | |
-sDEVICE=pdfwrite \ | |
-o output.pdf \ | |
viewjpeg.ps \ | |
-c "(page1.jpg) viewJPEG showpage \ | |
(page2.jpg) viewJPEG showpage" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment