Table of Contents

Enum PdfImageFormat

Namespace
DocWright.Formats.Pdf.Raster
Assembly
DocWright.Formats.Pdf.dll

The encodings a rasterized page can be written as.

public enum PdfImageFormat

Fields

Png = 0

PNG: lossless, and the default.

Jpeg = 1

JPEG: lossy, smaller for photographic pages.

Remarks

Deliberately a second enum rather than a reference to the imaging renderer's identical one. A PDF reader has no business depending on the renderer that turns a LayoutDocument into pixels — they share a rasterizer, not a direction — and taking that dependency for two enum members would make every consumer of PDF import pull in the layout renderer as well. The two are reconciled where a caller actually meets both, at the facade.