PeachPDF

PeachPDF.PdfGenerateConfig

PdfGenerateConfig.BrotliCompression Property

Off by default. When true and PdfVersion is Pdf20, PeachPDF compresses page content, fonts, embedded files and raster images’ pixel data with the PDF 2.0 /BrotliDecode filter instead of /FlateDecode - typically smaller output. 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. Ignored (always off) for any other PdfVersion. Brotli comes from .NET’s own encoder, or from the encoder a host registers with PeachDrawing.Text.Compression.BrotliCompression.SetCompressor; with neither, PeachPDF falls back to /FlateDecode silently.

public bool BrotliCompression { get; set; }

Property Value

System.Boolean