Click or drag to resize
Pdftools logo

PdfTools.Optimization.Profiles Namespace

 
Classes
 ClassDescription
Public classArchive

The optimization profile suitable for archiving

This profile provides minimal document modification and is well suited for reducing the file size prior to converting to PDF/A. The optimizer itself does not create PDF/A output but merely tries to preserve PDF/A conformance.

Alternate images and thumbnails are removed. The resolution and color space of images stay untouched.

When an image is recompressed, the PreserveQuality strategy is used; this can be overridden through the property ImageRecompressionOptions.

For PDF/A conforming input files, the PDF/A conformance is preserved if possible. For other files, the PDF version is updated to PDF 1.7 or higher.

Public classMinimalFileSize

The optimization profile producing a minimal file size

This profile optimizes the output PDF for minimal file size. This is achieved by using a varied palette of image compression algorithms, appropriate resolution setting and higher compression rates at the price of slightly lower image quality.

The output file size is further reduced by converting Embedded Type1 (PostScript) fonts to Type1C (Compact Font Format) and removing metadata and output intents (see RemovalOptions). Also Spider (web capture) information is removed.

Images above 182 DPI are down-sampled and recompressed to 130 DPI. This leads to smaller output files. The property ResolutionDPI has influence on both values.

When an image is recompressed, the Balanced strategy is used; this can be overridden through the property ImageRecompressionOptions.

With this profile, the output PDF version is updated to PDF 1.7 or higher and PDF/A conformance removed.

Public classMrc

The optimization profile suitable for documents with Mixed Raster Content

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.
Public classPrint

The optimization profile suitable for printing

All colors are converted to CMYK for optimal output on printing devices. Spider (web capture) information is removed. Embedded Type1 (PostScript) fonts are converted to Type1C (Compact Font Format) which further reduces the file size. The resolution of images stays untouched.

When an image is recompressed, the PreserveQuality strategy is used; this can be overridden through the property ImageRecompressionOptions.

With this profile, the output PDF version is updated to PDF 1.7 or higher and PDF/A conformance removed.

Public classProfile

The base class for PDF optimization profiles

The profile defines the optimization parameters suitable for a particular use case, e.g. archiving, or publication on the web.
Public classWeb

The optimization profile suitable for electronic document exchange

All colors are converted to RGB. Spider (web capture) information is removed.

Images above 210 DPI are down-sampled and recompressed to 150 DPI. This leads to smaller output files. The property ResolutionDPI has influence on both values.

When an image is recompressed, the Balanced strategy is used; this can be overridden through ImageRecompressionOptions.

With this profile, the output PDF version is updated to PDF 1.7 or higher and PDF/A conformance removed.