 | PdfiumFPDF_LoadDocument Method |
Open and load a PDF document.
Namespace: Patagames.PdfAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntaxpublic static IntPtr FPDF_LoadDocument(
string file_path,
string password = ""
)
Public Shared Function FPDF_LoadDocument (
file_path As String,
Optional password As String = ""
) As IntPtr
public:
static IntPtr FPDF_LoadDocument(
String^ file_path,
String^ password = L""
)
static member FPDF_LoadDocument :
file_path : string *
?password : string
(* Defaults:
let _password = defaultArg password ""
*)
-> IntPtr
public static IntPtr FPDF_LoadDocument(
String file_path,
String password = ""
)
Patagames.Pdf.Pdfium.FPDF_LoadDocument = function(file_path, password);
Parameters
- file_path String
- Path to the PDF file (including extension)
- password String (Optional)
- A string used as the password for PDF file. If no password needed, empty or NULL can be used
Return Value
IntPtrA handle to the loaded document. If failed, IntPtr.Zero is returned
RemarksLoaded 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