Created
September 10, 2018 07:24
-
-
Save fabiendupont/97c63ef1885598365769652a5124a2ea to your computer and use it in GitHub Desktop.
Convert PDF to PNG
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
gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER \ | |
-dFirstPage=1 -dLastPage=1 \ | |
-sOutputFile=%stdout% /home/anonymous/my_doc.pdf \ | |
| convert -resize 200x200 -resample 72x72 pdf:- png:my_doc.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment