Click or drag to resize

PdfiumFPDF_RenderPage Method

Render contents in a page to a device (screen, bitmap, or printer). This function is only supported on Windows system.

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static void FPDF_RenderPage(
	IntPtr hdc,
	IntPtr page,
	int start_x,
	int start_y,
	int size_x,
	int size_y,
	PageRotate rotate,
	RenderFlags flags
)

Parameters

hdc  IntPtr
Handle to device context
page  IntPtr
Handle to the page. Returned by FPDF_LoadPage(IntPtr, Int32) function.
start_x  Int32
Left pixel position of the display area in the device coordinate
start_y  Int32
Top pixel position of the display area in the device coordinate
size_x  Int32
Horizontal size (in pixels) for displaying the page.
size_y  Int32
Vertical size (in pixels) for displaying the page
rotate  PageRotate
Page orientation: 0 (normal), 1 (rotated 90 degrees clockwise), 2 (rotated 180 degrees), 3 (rotated 90 degrees counter-clockwise)
flags  RenderFlags
0 for normal display, or combination of flags defined below 0x01 Set if annotations are to be rendered 0x02 Set if using text rendering optimized for LCD display 0x04 Set if you don't want to use GDI+ Applicable to desktop Windows systems only. 0x08 Grayscale output 0x80 Set if you want to get some debug info. 0x100 Set if you don't want to catch exception
See Also