I compress / encrypt / manage a lot of PDF during teh day as I have a paperless office and I thought I should contribute to the community.
I don’t know whether others will find this helpful but attached is a Macro that works on PDFs whose functionality includes:
- Ability to compress and/or encrypt a PDF
- User can select which of these they which to do
- Ability to delete or retain the original PDF
- Ability to move the resulting PDF to a new folder or the original folder
- Ability to rename the resulting PDF or write over the original PDF
- Ability to process multiple selected files
- And more
In designing the PDF I opted for something that is i) fast ii) offers different levels of compression and iii) reliable so went with Ghostscripter which is a command line based tool (which you need to have loaded to work, and which I understand is industry standard). It also occurred to me that building the above flexibility into one macro using Adobe / PDFPen / etc. would have been much harder!
Installing Ghoscript is easy via terminal (Google “how to install Ghostscripter, it took all of 5 minutes):
- Install the Xcode Command Line Tools (1 line in terminal)
- Install Homebrew (1 line in terminal followed by 2 echo lines)
- Install Ghostscripter (1 line in terminal)
I hope this helps a few people, would be interested in comments / thoughts?
Thanks.
Compress PDF.kmmacros (18.8 KB)
