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
import os | |
import time | |
''' | |
1. Download https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9533/gs9533w64.exe | |
2. Install Ghostscript from the exe. | |
3. Confirm that gswin64c.exe is present in C:\\Program Files\\gs\\gs9.53.3\\bin | |
4. Place this python file in a folder containing all the PDFs to be compressed. | |
5. Run 'python compress.py' from a command prompt (don't use powershell). | |
6. Compressed files will be saved in 'Compressed' subfolder. |