By Dan Shea, Planet PDF Contributing Editor.
Using the PDF Optimizer
The PDF Optimizer presents a lot of options. Since Acrobat/PDF Optimizer breaks them down by them into separate panels, we’ll do the same here. The types of content to be optimized can be toggled individually using the check boxes next to the panels on the left-hand side of the PDF Optimizer interface. Clicking on the panel name on the left-hand side brings up the panel and its specific options.
Using optimization profiles
You have rather a lot of options when customizing the PDF Optimizer to your particular needs. First up, check the settings for various in-built profiles. By default, Acrobat XI only ships with two: Standard and Mobile. Essentially, Standard is designed for broad compatibility with a broad range of viewing environments. As a result, it is compatible with older viewing software, and isn’t too drastic in the way it shrinks images and removes other elements. Mobile, on the other hand, represents a more aggressive approach to optimization, and is designed to ensure smaller file sizes that can be downloaded and viewed on devices that typically operate with more limited bandwidth.
If one of the built-in profiles seems to suit your needs, then great! Use it. If not, then it’s easy enough to tweak them. Note that changing any settings will reset the current profile to Custom, but you can then save any custom settings to a new profile, so that isn’t really a problem.
Optimizing images (Images Panel)
Images often contribute a significant amount to file size. The key processes involved in optimizing them are compression and downsampling. Compression eliminates redundant or unwanted pixel information, while downsampling reduces the resolution of images to save space. The user can select the compression type, resolution that triggers downsampling, and the resolution to which such images will be downsampled.
PDF Optimizer allows separate settings for color, grayscale and monochrome images. Due to differences in the number of possible colors, these different types of images take different amounts of space, so, for example, a high-res monochrome image would occupy an amount of space equivalent to a much lower-res color image.
The principles of downsampling are relatively straightforward: lower-res images take less space but look less sharp. What might be less obvious is which compression methods are best suited to particular types of images. In general, JPEG and JPEG2000 are best suited for use with images like photographs, where colors tend to change gradually. ZIP can be used with images with more clearly defined palettes and larger areas of solid color, like logos, layout art and some illustrations. JBIG2, CCITT Groups 3 & 4 are best used with monochrome images.
With JPEG, JPEG2000 and JBIG2 compression, the user must also choose a compression quality that offers a suitable trade-off between image quality and file size. Essentially, higher levels of compression discard more pixel information and encode each image as a compact approximation of the original. Lossless compression, which is available with JPEG2000 and JBIG2, retains all pixel information.
Unembedding fonts (Fonts Panel)
To ensure viewing fidelity and consistent editing across systems — not to mention comply with relevant standards — it’s common to embed entire fonts in PDF files. That said, fonts can take up a lot of space in a PDF, especially if there are a lot of them. Fonts can be safely unembedded if they are installed on the computers of the users reading the PDF documents. In that case, the reader’s system just accesses their local copy of the font. Clearly, this is safest when system or other essentially ubiquitous fonts have been used to compose the PDF document.
If the reader doesn’t have the font installed, then their PDF viewing software will select a locally-installed substitute font. As such, fonts should still be embedded when a consistent look-and-feel is crucial, unusual or custom fonts are used, or when it is mandated by compliance requirements. File size versus utility is always the trade-off when attempting to optimize PDFs.
Flatten transparency (Transparency Panel)
In PDF files with graphics that contain transparency, the Transparency panel can be used to flatten it. Flattening transparency incorporates it into artwork by sectioning it into vector- and raster-based areas. The Transparency Panel features several presets based on the desired quality. As with images, there is a trade-off between quality and file size.
Remove unwanted elements (Discard Objects & Discard User Data Panels)
The Discard Objects and Discard User Data settings permit the removal of intact but unwanted elements of PDF files. They allow the flattening of form fields or layers, discarding of embedded settings, annotations, interactive elements like bookmarks and the conversion of elements into simpler (and more compact) approximations. For example, interactive forms can be flattened so that form data entered by the user becomes a permanent part of the document. These settings can potentially reduce file size at the expense of functionality.
Since these elements can and often do affect the functionality of your PDF, it’s best to be careful when using unfamiliar options. Experimentation is best performed after saving a backup of your original file.
Clean up your PDF (Clean Up Panel)
The Clean Up settings can be configured to manipulate compression on the document level and to remove broken or otherwise redundant elements. This includes things like discarding invalid links and bookmarks, streamlining encoding settings, and optimizing PDFs for fast web viewing. While the latter doesn’t specifically address file size, web-optimized PDFs are still quicker to view online, which is often one purpose of reducing file size in the first place.
By default, only options that cannot affect functionality are selected; indeed, there is only one option that is not selected by default, “Discard unreferenced named destinations”. Without getting too technical, a named destination is like a beacon in the PDF. Once created, it’s possible to point to that beacon either externally (e.g., from another PDF) or internally (i.e., from another part of the same document). This option can only check whether anything within the PDF points to the named destination. In other words, it can only check for internal references. If there are external references to the destination, checking this option will break those links. As with the Discard Objects and Discard User Data settings, it’s worth backing-up your original PDF before experimenting with this.
Save the optimized file
Once you have configured everything, save the optimized file. Even if you haven’t specifically saved your settings as a profile, Acrobat will still remember your last PDF Optimizer settings. These will be the default configuration the next time you boot up Acrobat.
Optimizing PDFs in batches
It’s also possible to optimize archives of PDF documents in large batches using Acrobat’s Action Wizard (under Save & Export > Save). Outlining precisely how to do that is outside the scope of this article, but might be the topic of a future how-to. Until then, happy optimizing!