-
-
Save h3xxx/25147f56efb87ef89624ad764f0c1cac to your computer and use it in GitHub Desktop.
GhostScript PDF to text stdout
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
# requires ghostscript to be installed first - on mac, install with `brew install ghostscript` | |
# -sDEVICE=txtwrite - text writer | |
# -sOutputFile=- - use stdout instead of a file | |
# -q - quiet - prevent writing normal messages to output | |
# -dNOPAUSE - disable prompt and pause at end of each page | |
# -dBATCH - indicates batch operation so exits at end of processing | |
gs -sDEVICE=txtwrite -sOutputFile=- -q -dNOPAUSE -dBATCH to-be-processed.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment