public static PdfDrawOptions CreateFitSize( PdfSize sizePixels, bool cutUnusedSpace )
Public Shared Function CreateFitSize ( sizePixels As PdfSize, cutUnusedSpace As Boolean ) As PdfDrawOptions
The width and height should be in the [1..10000] range.
If cutUnusedSpace is true then produced images will have the width and height equal to the width and height of the corresponding PDF pages, resized to fit specified size.
If cutUnusedSpace is false then produced images will have the size equal to the size specified by sizePixels. The corresponding PDF pages will be drawn in the center of their image, preserving aspect ratio. The unused space will be filled with the transparent color.