Networking/Computing Tips/Tricks

Rate this content:
0 of 5 - 0 votes
Thank you for rating this article.

If you are a MAC user, you have probably assumed that Preview (the MAC OSX PDF viewer) is just a viewer and can do little else.  If so, you would be wrong.  While there are a number of things Preview can do, one of the most important is that it can save PDF files in different sizes and quality levels.

Recently I had converted a a Microsoft Powerpoint to PDF and the file size was enormous, but the quality was very good.  I wanted to adjust the PDF quality and size.

By selecting File> Export, and then selecting one of the Quartz filters, I saw you can convert the open file to black-and-white or sepia tone, increase or decrease their lightness, and more.  One of those options was to reduce file size.  This is all good, but when I selected reduce file size the quality was too fuzzy in the graphics.  There appeared to be no way to further adjust the PDF file size and image quality.

Well, there is a great way to give yourself more choices.  The Quartz filters are located in the folder /System/Library/Filters.  These are XML files that are easily edited with TextEdit or any other text editor.   If you look at the file for the Reduce File Size filter, you will see two of the parameters:

  • Compression Quality
  • ImageSizeMax

These are too low (0.0 and 512, respectively).

So here is what to do.  Make three copies of this file to the Desktop.  Then on the desktop copies, rename each one as follows and edit each file with the parameters as shown in the table:

Name Compression Quality ImageSize
Reduce File Size Good 0.25 842
Reduce File Size Better 0.5 1684
Reduce File Size Best 0.75 3508

Lastly, you need to change the default string for the Name key at the end of each file (this is what displays in the Export menu) to match its file name.

Here is an example:

Screen Shot 2016 04 08 at 7.19.13 AM

Now in your Finder, create a /Library/Filters folder and then move all three edited files in that new folder.  You will not be able to put them in the /System/Library/Filters folder.

Close and re-open Preview.  Open a PDF, and then select File> Export, you will see the new Quartz Filters!  You can experiment with the new settings to find the file size and image quality that works best for you.



Add comment


Did you learn something?
Did I save you time? 

Buy me a coffeeBuy me a coffee!

Find by Tag

5G Networks 6LoWLAN 6LoWPAN 802.11 802.11ah 802.11ax 802.11ay 802.11az ACL Addressing Analysis Ansible Architecture ARP Assessment AToM Backup Bandwidth BGP Bibliography Biography Briefings CBRS CellStream Cellular Central Office Cheat Sheet Chrome Cisco Clock Cloud Computer Consulting CPI Data Center Data Networking Decryption DHCPv4 DHCPv6 Display Filter DNS Documentation ECMP EIGRP Ethernet Flipping the Certification Model Follow Me Fragmentation Git GNS3 Google GQUIC Hands-On History Home Network HTTPS ICMP ICMPv6 IEEE 802.11p IEEE 802.15.4 In A Day Internet IOS Classic IoT IPv4 IPv6 L2 Switch L2VPN L3VPN LDP Learning Services Linux LLN Logging LoL M-BGP MAC MAC OSx Macro Microsoft mininet Monitoring Monitor Mode MPLS Multicast Name Resolution Netflow NetMon netsh Networking Network Science nmap Npcap nslookup Online Learning Online School OpenFlow OSPF OSPFv2 OSPFv3 OSX Parrot Passwords pcap pcap-ng PIM Ping Policy Port Mirror POTS POTS to Pipes PPP Profile Profiles Programming Project Management Python QoS QUIC Requirements RFC RIP Routing RPL RSVP SAS SDN Security Self Certification Service Provider Small Business Smartport SONET Span Port SSH SSL Subnetting T-Shark TCP TCP/IP Telco Telecom 101 Telecommunications Telnet Terminal TLS Tools Traceroute Traffic Analysis Traffic Engineering Training Travel Troubleshooting Tunnel Utility Video Virtualbox Virtualization Voice VoIP VXLAN Webex Wi-Fi Wi-Fi 4 Wi-Fi 5 Wi-Fi 6 Wi-Fi 6/6E Windows Wireless Wireless 5G Wireshark Wireshark Tip WLAN ZigBee Zoom

Twitter Feed