Created
July 16, 2017 13:00
-
-
Save vjk2005/e757a9ebdf61f0100c725853444691e9 to your computer and use it in GitHub Desktop.
Convert PDF to images using GhostScript
This file contains hidden or 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 -dNOPAUSE -dBATCH -sDEVICE=jpeg -dJPEGQ=100 -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -r96 -sOutputFile='page-%00d.jpg' <input.pdf> | |
# r = resolution, here 96 = width 960px. properties with "AlphaBits" in them control smoothness of images and text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment