Table of Contents

Property Fit

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

Fit

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

public ImageFit Fit { get; set; }

Property Value

ImageFit

Remarks

Cover and Exact need both a width and a height; supplying only one throws when the page is rendered, because a fit against a single unconstrained axis has no meaning. Setting neither is not an error — with no box to fit into, nothing has been asked for and the page keeps its natural size.