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.

(download)

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.

UPS for Mac Pro

I was looking for some good UPS for my Mac Pro, because I was worried about my RAID array, data on it, etc. Tried to find some power consumption figures, but wasn’t able to find some real numbers. After some research, I gave a try to APC Smart-UPS 3000VA LCD 230V. Here are some numbers, so, you can get a clue what do you really need.

(download)

Power Consumption Figures

Following numbers were read from UPS LCD panel. 24” LCD Dell U2410 consumes about 80 W, 27” LCD Dell U2711 consumes about 90 W and finally Mac Pro consumes about 160 W.

It’s not enough to say Mac Pro, you also need to know what’s inside. Here’s the short list - Quad-Core Intel Xeon, 16 GB of RAM, 4x HDD, ATI Radeon HD 4870 and NVIDIA GeForce GT 120.

Power Outage

When I disconnect UPS from power, it says it can feed my Mac Pro and all accessories for almost 2 (yes, two) hours. Never tried it, but I assume it will be for 90 minutes. It’s nice and not expected.

Average UPS load is 11 %.

Mac OS X Integration

No need to worry. It’s enough to connect UPS via USB cable to your Mac and that’s all. Then you can visit System Preferences - Energy Saver and play with UPS settings.

(download)

Hope that helps to someone to make a right decision about UPS. This on is pretty solid and have lot of power.

 

AppCode

I’ve been developing for Mac OS X and iOS for a long time and I can’t say that I’m really happy with Xcode 4. It’s like ambivalent love. Sometimes I love it, sometimes I really hate it. I always do remember my experience with other IDEs from Borland, Microsoft, Eclipse Foundation, … and I tend to cry. I feel that Apple tries to add as many as possible features to make it more comfortable for nowadays developers and I’m not sure it’s a good direction.

But I’m quite happy now, because I found AppCode. It’s an Objective-C IDE, which is based on really great IDE named IntelliJ IDEA. And do you know what’s really great too? It’s Czech company. Okay, owned by two people from Russia, but who cares, me not.

It’s written in Java, but I don’t see a difference in speed. Sometimes it’s much more faster compared to Xcode with beach ball.

No final verdict yet, but I like it very much. I feel I do use real IDE where I have more control. Try it yourself and you’ll see. It’s currently in Beta stage and you can also subscribe for 50 % discount to get it for less than 45 € later.

P.S. I look forward for how long they survive, because I never thought it has sense to develop something like AppCode. Good luck guys, I’ll buy one license for sure.