Click or drag to resize

PdfiumFPDFPRINT_Open Method

Prepares given document for direct printing

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static IntPtr FPDFPRINT_Open(
	IntPtr document,
	string pageRange,
	int paperWidth,
	int paperHeight,
	int printableAreaLeft,
	int printableAreaTop,
	int printableAreaRight,
	int printableAreaBottom,
	PrintScallingMode ScallingMode
)

Parameters

document  IntPtr
A document handle. Returned by FPDF_LoadDocument(String, String), FPDF_LoadMemDocument(Byte, Int32, String) or FPDF_LoadCustomDocument(FPDF_FILEACCESS, String) functions.
pageRange  String
A page range string, Such as "1,3,5-7". If this parameter is NULL, it would import all pages in src_doc.
paperWidth  Int32
A paper width in points.
paperHeight  Int32
A paper height in points.
printableAreaLeft  Int32
A Page printable area values in points.
printableAreaTop  Int32
A Page printable area values in points.
printableAreaRight  Int32
A Page printable area values in points.
printableAreaBottom  Int32
A Page printable area values in points.
ScallingMode  PrintScallingMode
The scalling mode.

Return Value

IntPtr
If the function succeeds, the return value is an open handle to the direct print object. If the function fails, the return value is IntPtr.Zero. To get extended error information, call FPDF_GetLastError.
Remarks
When an application is finished using the object handle returned by FPDFPRINT_Open, use the FPDFPRINT_Close(IntPtr) function to close the handle.
See Also