Class CompressionOptions
Various compression options for reducing the size of a PDF document
Inheritance
System.Object
CompressionOptions
Namespace: IronPdf
Assembly: IronPdf.dll
Syntax
public class CompressionOptions : Object
Constructors
CompressionOptions()
Declaration
public CompressionOptions()
Properties
CompressImages
Compress existing images using JPG encoding and the specified settings
Declaration
public bool CompressImages { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
HighQualityImageSubsampling
True to use 444 chroma subsampling for a higher quality image. False to use 411 chrome subsampling to further reduce the image size.
Declaration
public bool HighQualityImageSubsampling { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
JpegQuality
JPEG quality (1 - 100) to use during image compression
Declaration
public int JpegQuality { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
RemoveStructureTree
Remove document struct tree information which describes the logical layout of the document.
Removing the "structure tree" can significantly reduce the disk space used by the document.
Removing the "structure tree" of a complicated document can negatively impact text selection.
Declaration
public bool RemoveStructureTree { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ShrinkImages
Scale down the image resolution according to its visible size in the PDF document. This will drastically reduce the size and quality of the images.
Declaration
public bool ShrinkImages { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |