PeachPDF

PeachPDF.PdfGenerateConfig

PdfGenerateConfig.RasterAntiAliasing Property

Whether a bitmap PeachPDF rasterizes itself (see RasterizationDpi) is anti-aliased. Defaults to true. This is a single, graphics-wide switch: it governs every pixel PeachPDF’s own raster backend writes for a document — shape fills and strokes, images, and any glyph fill drawn while TextHinting routes text through the raster path — not text alone. Set to false to threshold every pixel to fully transparent or fully opaque instead of the usual smoothed, fractional-coverage edge.

public bool RasterAntiAliasing { get; set; }

Property Value

System.Boolean

Remarks

It affects only bitmaps PeachPDF renders itself: a CSS filter:-triggered region, a region rendered opaque under Flatten, and glyph fills drawn while TextHinting is not None. It has no effect on the PDF’s own vector text and path content stream, which is not a bitmap at all - a PDF viewer (or a rasterizer such as PDFium or MuPDF) anti-aliases that content on its own when displaying it, independent of this setting. A document with no rasterized regions and no raster-hinted text is byte-for-byte the same regardless of this value.