PdfDrawOptions.CreateFitHeight Method

Creates draw options for producing images of PDF pages resized to fit the specified height.

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

Syntax

C#
public static PdfDrawOptions CreateFitHeight(
	double heightPixels
)
VB
Public Shared Function CreateFitHeight ( 
	heightPixels As Double
) As PdfDrawOptions

Parameters

heightPixels
Type: System.Double
The height of images in pixels.

Return Value

Type: PdfDrawOptions
The options for producing images of PDF pages resized to fit the specified height.

Remarks

The height should be in the [1..10000] range.

Each image produced with these options will have the specified height. The width of the image will be calculated dynamically using the aspect ratio of the corresponding PDF page.

Use HorizontalResolution and VerticalResolution properties to change the pixel density (i.e., the physical size) of the output image.

See Also