 | PdfiumFPDFPRINT_Open Method |
Prepares given document for direct printing
Namespace: Patagames.PdfAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntaxpublic static IntPtr FPDFPRINT_Open(
IntPtr document,
string pageRange,
int paperWidth,
int paperHeight,
int printableAreaLeft,
int printableAreaTop,
int printableAreaRight,
int printableAreaBottom,
PrintScallingMode ScallingMode
)
Public Shared Function FPDFPRINT_Open (
document As IntPtr,
pageRange As String,
paperWidth As Integer,
paperHeight As Integer,
printableAreaLeft As Integer,
printableAreaTop As Integer,
printableAreaRight As Integer,
printableAreaBottom As Integer,
ScallingMode As PrintScallingMode
) As IntPtr
public:
static IntPtr FPDFPRINT_Open(
IntPtr document,
String^ pageRange,
int paperWidth,
int paperHeight,
int printableAreaLeft,
int printableAreaTop,
int printableAreaRight,
int printableAreaBottom,
PrintScallingMode ScallingMode
)
static member FPDFPRINT_Open :
document : IntPtr *
pageRange : string *
paperWidth : int *
paperHeight : int *
printableAreaLeft : int *
printableAreaTop : int *
printableAreaRight : int *
printableAreaBottom : int *
ScallingMode : PrintScallingMode -> IntPtr
public static IntPtr FPDFPRINT_Open(
IntPtr document,
String pageRange,
int paperWidth,
int paperHeight,
int printableAreaLeft,
int printableAreaTop,
int printableAreaRight,
int printableAreaBottom,
PrintScallingMode ScallingMode
)
Patagames.Pdf.Pdfium.FPDFPRINT_Open = function(document, pageRange, paperWidth, paperHeight, printableAreaLeft, printableAreaTop, printableAreaRight, printableAreaBottom, 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