PDFsharp-net6

PdfDocumentOptions

Namespace: PdfSharp.Pdf

Holds information how to handle the document when it is saved as PDF stream.

public sealed class PdfDocumentOptions

Inheritance ObjectPdfDocumentOptions

Properties

ColorMode

Gets or sets the color mode.

public PdfColorMode ColorMode { get; set; }

Property Value

PdfColorMode

CompressContentStreams

Gets or sets a value indicating whether to compress content streams of PDF pages.

public bool CompressContentStreams { get; set; }

Property Value

Boolean

NoCompression

Gets or sets a value indicating that all objects are not compressed.

public bool NoCompression { get; set; }

Property Value

Boolean

FlateEncodeMode

Gets or sets the flate encode mode. Besides the balanced default mode you can set modes for best compression (slower) or best speed (larger files).

public PdfFlateEncodeMode FlateEncodeMode { get; set; }

Property Value

PdfFlateEncodeMode

EnableCcittCompressionForBilevelImages

Gets or sets a value indicating whether to compress bilevel images using CCITT compression. With true, PDFsharp will try FlateDecode CCITT and will use the smallest one or a combination of both. With false, PDFsharp will always use FlateDecode only - files may be a few bytes larger, but file creation is faster.

public bool EnableCcittCompressionForBilevelImages { get; set; }

Property Value

Boolean

UseFlateDecoderForJpegImages

Gets or sets a value indicating whether to compress JPEG images with the FlateDecode filter.

public PdfUseFlateDecoderForJpegImages UseFlateDecoderForJpegImages { get; set; }

Property Value

PdfUseFlateDecoderForJpegImages