Reduce PDF file size
Sometimes I work on documents where high resolution photos are used and when I create PDF files they are way too large. For example - 9 page document with several photos was saved to 310 MB PDF file. Do you wonder how to make it smaller without byuing additional applications? The answer is - ColorSync Utility.
1. Create custom Quartz filters
- start ColorSync Utility and switch to Filters tab
- click on + button (bottom left) to create and name your custom filter
- click on the triangle button on the right side of your filter and select Add Image Effects Component - Image Compression and Add Image Effects Component - Color Image Sampling
- Image Sampling allows you to change Scale, Resolution (DPI), Max/Min pixels and Quality
- Image Compression allows you to change Mode and Quality
Personally I have 4 filters - 110, 150, 300 and 600 DPI. Image Compression Mode set to JPEG and Quality set to 95 % approximately.
BTW or use triangle to duplicate already existing filter.
2. How to apply Quartz filter
2.1. Preview application
Open PDF file in Preview application, select File - Export... and select appropriate filter in Quartz Filter field. As you can see custom filters are not there. To make them visible open Terminal application and run this command:
cp ~robertvojta/Library/Filters/* /Library/PDF\ Services/
You need to run this command as root and replace robertvojta with your user name.
2.2. ColorSync Utility
This is better solution if you do not want to fiddle with system filters. Right click on your PDF file in Finder and select Open With ... - ColorSync Utility.
Bottom bar contains Filter with combo box and Apply button. Select appropriate filter and click on the Apply button. Don't be affraid, original file isn't modified until you select File - Save.
Select File - Save As... and save your reduced PDF file.
3. Comparison
He are some rough results on one of my PDF files.
- original file - 310 MB
- applied 300 DPI filter with 95 % JPEG compression - 6.3 MB
- applied 110 DPI filter with 95 % JPEG compression - 1.9 MB
4. Automation
Too complicated. There's much better way if your filters are ready.
- create folder Reduce PDF - 300 DPI on your desktop
- start Automator and create Folder Action
- choose Reduce PDF - 300 DPI folder
- drag Library - PDFs - Apply Quartz Filter to PDF Documents
- decide if you want to modify original file or create a copy
- select your filter, let's say it's named PDF - 300 DPI
- select File - Save...
And that's all. Find some PDF file and drag & drop it to your desktop folder. Automator automatically applies your Quartz filter. Wait few seconds and you can find smaller PDF file in your desktop folder.
