 | PdfiumFPDF_LoadCustomDocument Method |
Load PDF document from a custom access descriptor.
Namespace: Patagames.PdfAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntaxpublic static IntPtr FPDF_LoadCustomDocument(
FPDF_FILEACCESS pFileAccess,
string password
)
Public Shared Function FPDF_LoadCustomDocument (
pFileAccess As FPDF_FILEACCESS,
password As String
) As IntPtr
public:
static IntPtr FPDF_LoadCustomDocument(
FPDF_FILEACCESS^ pFileAccess,
String^ password
)
static member FPDF_LoadCustomDocument :
pFileAccess : FPDF_FILEACCESS *
password : string -> IntPtr
public static IntPtr FPDF_LoadCustomDocument(
FPDF_FILEACCESS pFileAccess,
String password
)
Patagames.Pdf.Pdfium.FPDF_LoadCustomDocument = function(pFileAccess, password);
Parameters
- pFileAccess FPDF_FILEACCESS
- A structure for access the file.
- password String
- Optional password for decrypting the PDF file.
Return Value
IntPtrA handle to the loaded document. If failed, IntPtr.Zero is returned.
RemarksThe 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 |
---|
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