Click or drag to resize
PDFDocumentGetPreviewImage Method (String, Size)
Quick to load the first page of the document and render it to specific size.

Namespace: RasterEdge.XDoc.PDF
Assembly: RasterEdge.XDoc.PDF (in RasterEdge.XDoc.PDF.dll) Version: 9.8.7.60526 (9.8.7.60526)
Syntax
public static Bitmap GetPreviewImage(
	string filePath,
	Size targetSize
)

Parameters

filePath
Type: SystemString
targetSize
Type: System.DrawingSize

Return Value

Type: Bitmap
Result image; return null if the document cannot be open.
See Also