Namespace: PdfSharp.Pdf
Holds information how to handle the document when it is saved as PDF stream.
public sealed class PdfDocumentOptions
Inheritance Object → PdfDocumentOptions
Gets or sets the color mode.
public PdfColorMode ColorMode { get; set; }
Gets or sets a value indicating whether to compress content streams of PDF pages.
public bool CompressContentStreams { get; set; }
Gets or sets a value indicating that all objects are not compressed.
public bool NoCompression { get; set; }
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; }
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; }
Gets or sets a value indicating whether to compress JPEG images with the FlateDecode filter.
public PdfUseFlateDecoderForJpegImages UseFlateDecoderForJpegImages { get; set; }