Last active
February 22, 2024 10:44
-
-
Save jzhou77/a2300a4d02e43c1938012b72dcdfbb46 to your computer and use it in GitHub Desktop.
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
Use open source QPDF: | |
$ qpdf --decrypt input.pdf output.pdf | |
And the restrictions were removed. Note that the original PDF was not password protected. | |
Another way of using ghostscript: | |
$ gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=OUTPUT.pdf -f INPUT.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment