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.7.0+cfcc11b476b3e1eb4320f0f37269191f64e36bd8
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 ThresholdDPI are down-sampled.

Valid values are in the range 1.0 to 10000.

If , then resolution setting is disabled.

Default: 130.

Public propertyThresholdDPI

The threshold resolution of images in DPI.

The threshold resolution in DPI (dots per inch) to selectively activate downsampling for color and grayscale images.

Valid values are in the range 1.0 to 10000. To deactivate down-sampling of images set ResolutionDPI to .

Default: 1.4 times ResolutionDPI.

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