Samples Overview


Optimize PDF document for archiving

Apply the optimization profile for archiving to reduce the file size while following the archive-typical imperative of preserving all information. Redundant objects are removed, embedded font files are merged and reduced to the subset of used glyphs. Resources are optimized and images are compressed depending on their type.

Optimize PDF document with Mixed Raster Content (MRC)

Reduce the file size for documents containing large images, e.g. scanned pages, while maintaining the readability of text. This is accomplished by separating the images into a foreground, background and a mask layer. The foreground and background layers are heavily down-sampled and compressed. The textual information is stored in the mask with a lossless compression type. Additionally, redundant objects are removed, resources are optimized and embedded fonts are merged.

Merge and subset fonts from PDF document

Merge multiple embedded font programs and remove all unused glyphs. Additionally, Type 1 font programs are converted to CFF (compact font format).

Optimize images of PDF document

Reduce the size of a PDF file by down-sampling and re-compressing embedded images. Set a target resolution and define a set of compression types for the optimizer to intelligently choose from. Optionally set the compression quality for lossy compression types.

Optimize PDF document for printing

Avoid printing-related challenges with PDF documents. Reduce the overall file size and merge and subset fonts in order to create smaller spool files and reduce the printer’s memory usage. Convert colors to CMYK. Do not remove or alter any information, such as image resolution, that is needed for a well-defined reproduction.

Optimize PDF document for web

Decrease the file size of a PDF to reduce storage requirements on a webserver and download times. This optimization may result in minor visual losses. The output PDF is linearized, which means appropriate viewers can display content before the whole document is downloaded.


Flatten annotations of PDF document

Remove the interactivity of all annotations. For this purpose, annotations and form fields are removed from the internal PDF data structure and an unalterable visual appearance is put at the corresponding location as a replacement.

Remove additional information of PDF

Strip supplementary information of a PDF that is not necessary for many purposes. This includes alternate images, metadata, the output intent, the document structure tree and thumbnails.

Features and Configuration

Encrypt document with user or owner password

Create an encrypted document, which requires a password to open. The user is permitted to create annotations when providing the user password. On the other hand, the user is not allowed to print, copy or assemble the document. The full range of permissions is only granted with the owner password.

Extract images and font files from PDF

Extract all embedded images and font files and save them as files. Depending on the font type and the compression type of an image, the extracted files have different formats.

Set document info of a PDF document

Set the document info metadata of a PDF document, such as title, author, subject, creator and producer.

Upgrade the PDF version

Set the minimum PDF version for the output document. Supported values range from '1.1' to '1.7'. If the PDF version of the input document is higher than the minimum, the version of the input document is adopted in the output document.

In Memory

Optimize PDF in-memory

Read a PDF from a byte stream, optimize it and return the result as byte stream. For demonstration purpose, the PDF byte stream is created from file and the resulting byte stream is written back to a file.