PeachDrawing.PDF.PdfComposerOptions

PdfComposerOptions.BrotliCompression Property

Whether page content, fonts, embedded files and raster image data are compressed with Brotli (the PDF 2.0 /BrotliDecode filter) instead of Flate: typically smaller output. Defaults to false, because the filter is not read by every PDF reader yet (PDFium, the engine behind Chrome’s and Edge’s viewers, and Acrobat show such a file as blank), so enable it only when you control the readers. Only applies to a Pdf20 file, and not to PDF/A-4 or PDF/X-6, which allow only the standard filters. Brotli comes from .NET’s own encoder, or from the encoder a host registers with PeachDrawing.Text.Compression.BrotliCompression.SetCompressor; with neither, the writer falls back to Flate silently.

public bool BrotliCompression { get; set; }

Property Value

System.Boolean