Created
November 14, 2019 02:06
-
-
Save FFY00/44859162f9fcefa6cee7584730879ece to your computer and use it in GitHub Desktop.
Remove watermark pdf
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
#!/bin/sh | |
pdftk $1 output fixed.pdf | |
pdftk fixed.pdf output uncompressed.pdf uncompress | |
sed -e 's|/Watermark||g' -e 's|<.*WatermarkSettings.*>||g' uncompressed.pdf > unwatermarked.pdf | |
pdftk unwatermarked.pdf output compressed.pdf compress |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment