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

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

Syntax

C#
public static PdfDrawOptions CreateFitWidth(
	double widthPixels
)
VB
Public Shared Function CreateFitWidth ( 
	widthPixels As Double
) As PdfDrawOptions

Parameters

widthPixels
Type: System.Double
The width of images in pixels.

Return Value

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

Remarks

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

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

See Also