Networking/Computing Tips/Tricks

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.



Comments powered by CComment

Find by Tag

4G Networks 5G Networks 6LoWLAN 6LoWPAN 802.11 802.11ah 802.11ax 802.11ay 802.11az Addressing Analysis Ansible Architecture ARP AToM Baseline BGP Bloom's Taxonomy Broadband Cable cat CellStream Cellular Central Office Cheat Sheet Chrome Cisco Cloud CMD Coloring Rules Computer Consulting Customer Support Data Center Data Networking DHCPv6 DNS Docker Documentation Dublin-Traceroute dumpcap ECMP Ethernet Ethics Evaluation Field Operations Fragmentation G-MPLS GeoIP Git GNS3 Google GQUIC Hands-On History Home Network ICMP ICMPv6 IEEE 802.11p IEEE 802.15.4 India Interface Control Internet IoT IPsec IPv4 IPv6 IRINN IS-IS L2VPN L3VPN LDP Linux LLN LoL M-BGP MAC Macro Microsoft mininet Monitoring MPLS mtr MTU Multicast Name Resolution Netcat Netmiko NetMon netsh Networking Network Science nmap Npcap NSE Observations Online School OpenFlow OSPF OSPFv2 OSPFv3 OSX OTT Paris-Traceroute Parrot PIM PMTU Policy POTS POTS to Pipes PPP Profile Programming Project Management PW3E Python QoS QUIC Remote Desktop Requirements Resume RIP Routing RPL RSVP Rural SDN Security Service Provider Small Business SONET Speed SS7 SSH SSL Subnetting SYSCTL T-Shark TCP TCP/IP Telco Telecom 101 Telecommunications Telephone termshark Testing TLS Tools Traceroute Traffic Engineering Training Travel Tunnel Ubuntu Utility Video Virtualbox Virtualization VoIP VRF VXLAN Wi-Fi Wi-Fi 4 Wi-Fi 5 Wi-Fi 6 Windows Winpcap Wireless Wireless 5G Wireshark Wireshark Tip WLAN Writing Zenmap ZigBee

Twitter Feed