Created
September 8, 2021 06:28
-
-
Save damascenodiego/9c19d1197a6e671b22a6018fe567a546 to your computer and use it in GitHub Desktop.
Command to flatten PDF files and retain the image quality
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
#!/bin/sh | |
mkdir out | |
pdf2ps $1 - | ps2pdf - $1.tmp | |
mv $1.tmp out/$1 | |
# References: | |
## https://unix.stackexchange.com/a/162925 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment