Click or drag to resize
Pdf Library for .NET

PdfCompressionLevel Enumeration

The level of stream and font compression applied when the PDF document is saved.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public enum PdfCompressionLevel
Members
Member nameValueDescription
NoCompression0 No compression is applied. Produces the largest files with the fastest save.
Normal1 Balanced compression that trades a small amount of speed for a smaller file.
Best2 Maximum compression. Produces the smallest files at the cost of a slower save.
Example
PdfDocument doc = new PdfDocument();
doc.CompressionLevel = PdfCompressionLevel.Best;
See Also