Table of Contents

Class PdfRasterOptions

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

Options for rasterizing PDF pages to images.

public sealed class PdfRasterOptions
Inheritance
PdfRasterOptions
Inherited Members

Constructors

PdfRasterOptions()

Fields

DefaultDpi

The default output resolution in dots per inch.

Properties

Background

Gets or sets the colour the page is painted onto. Default: white.

Dpi

Gets or sets the output resolution in dots per inch. Default: DefaultDpi.

Fit

Gets or sets how the page is fitted into Width and Height. Defaults to Contain.

Format

Gets or sets the encoded output format. Default: Png.

Height

Gets or sets the target output height in pixels, or 0 for whatever Dpi produces. Defaults to 0.

JpegQuality

Gets or sets the JPEG quality, 1–100. Default: 85. Ignored for PNG.

MaxHeight

Gets or sets an upper bound on the output height in pixels, or 0 for none. Defaults to 0.

MaxWidth

Gets or sets an upper bound on the output width in pixels, or 0 for none. Defaults to 0.

Pages

Gets or sets the pages to render. Defaults to All.

ScalePercent

Gets or sets a uniform scale as a percentage of natural size. Defaults to 100.

Width

Gets or sets the target output width in pixels, or 0 for whatever Dpi produces. Defaults to 0.