Click or drag to resize
Pdftools logo

MinimalFileSize Class

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.

Inheritance Hierarchy
SystemObject
  PdfTools.InternalNativeBase
    PdfTools.InternalNativeObject
      PdfTools.Optimization.ProfilesProfile
        PdfTools.Optimization.ProfilesMinimalFileSize

Namespace: PdfTools.Optimization.Profiles
Assembly: PdfTools (in PdfTools.dll) Version: 1.0.0
Syntax
C#
public class MinimalFileSize : Profile

The MinimalFileSize type exposes the following members.

Constructors
 NameDescription
Public methodMinimalFileSize 
Top
Properties
 NameDescription
Public propertyCopyMetadata

Whether to copy metadata

Copy document information dictionary and XMP metadata. Default: .
(Inherited from Profile)
Public propertyFontOptions

The font optimization options


(Inherited from Profile)
Public propertyImageRecompressionOptions

The image recompression options


(Inherited from Profile)
Public propertyRemovalOptions

The parameters defining the optional data to remove or flatten


(Inherited from Profile)
Public propertyResolutionDPI

The target resolution of images in DPI

The target resolution in DPI (dots per inch) for color and grayscale images.

Images with a resolution above a threshold of 1.4 times the target resolution are down-sampled.

Valid values are 1.0, or 10000, or in between.

If , then resolution setting is disabled.

Default: 130.

Top
Methods
 NameDescription
Public methodEquals
(Inherited from NativeObject)
Public methodGetHashCode
(Inherited from NativeObject)
Top
See Also