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/bash | |
# NOTE: I recommend pdfsandwich instead of this script, partly because imagemagick (and pdftoppm) fail on large detailed images. | |
# While that technique does not preserve the original graphics, it can come close. | |
# To preserve color: | |
# pdfsandwich -rgb input.pdf | |
# To preserve grey tones: | |
# pdfsandwich -gray input.pdf | |
# To disable all preprocessing: | |
# pdfsandwich -nopreproc input.pdf |