Click or drag to resize

PdfiumFPDF_LoadCustomDocument Method

Load PDF document from a custom access descriptor.

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static IntPtr FPDF_LoadCustomDocument(
	FPDF_FILEACCESS pFileAccess,
	string password
)

Parameters

pFileAccess  FPDF_FILEACCESS
A structure for access the file.
password  String
Optional password for decrypting the PDF file.

Return Value

IntPtr
A handle to the loaded document. If failed, IntPtr.Zero is returned.
Remarks
The application should maintain the file resources being valid until the PDF document close. Loaded document can be closed by FPDF_CloseDocument(IntPtr). If this function fails, you can use FPDF_GetLastError to retrieve the reason why it fails.
Note  Note
With the trial version the documents which size is smaller than 1024 Kb, or greater than 10 Mb can be loaded without any restrictions. For other documents the allowed ranges is 1.5 - 2 Mb; 2.5 - 3 Mb; 3.5 - 4 Mb; 4.5 - 5 Mb and so on.
See Also