PdfDrawOptions.CreateZoom Method

Creates draw options for producing images of PDF pages zoomed in or out to the specified percent.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public static PdfDrawOptions CreateZoom(
	double zoomPercent
)
VB
Public Shared Function CreateZoom ( 
	zoomPercent As Double
) As PdfDrawOptions

Parameters

zoomPercent
Type: System.Double
The zoom percent (magnification level).

Return Value

Type: PdfDrawOptions
The options for producing images of PDF pages zoomed in or out to the specified percent.

Remarks

The zoom percent should be in the [1..6500] range.

Each produced image will contain the corresponding PDF page zoomed to the percent specified by zoomPercent.

Produced images will be additionally scaled when HorizontalResolution or VerticalResolution properties are not equal to 72 pixels per inch. The scaling happens to maintain the same physical size of the corresponding PDF page in the produced images.

To produce images of an exact width, height, or both, please use CreateFitWidth(Double), CreateFitHeight(Double), or CreateFitSize(PdfSize, Boolean) methods.

See Also