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

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

Syntax

C#
public static PdfDrawOptions CreateFitSize(
	PdfSize sizePixels,
	bool cutUnusedSpace
)
VB
Public Shared Function CreateFitSize ( 
	sizePixels As PdfSize,
	cutUnusedSpace As Boolean
) As PdfDrawOptions

Parameters

sizePixels
Type: BitMiracle.Docotic.Pdf.PdfSize
The size of images in pixels.
cutUnusedSpace
Type: System.Boolean
Defines whether to cut unused space.

Return Value

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

Remarks

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

If cutUnusedSpace is true then images will have the same size as PDF pages resized to fit specified size.

If cutUnusedSpace is false then images will have the size specified by sizePixels, PDF pages will be drawn at the center of the image preserving aspect ratio and unused space will be filled with background color.

See Also