Table of Contents

Property Width

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

Width

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

public int Width { get; set; }

Property Value

int

Remarks

Setting a width does not resample the page after the fact: the requested size becomes the page transform's scale, so the page is rasterized at that size directly and is exactly as sharp as one rasterized at an equivalent DPI.

Exceptions

ArgumentOutOfRangeException

The value is negative.