M_PDFiumSharp_PDFium_FPDF_LoadDocument_2 - ArgusMagnus/PDFiumSharp GitHub Wiki
Open and load a PDF document.
Namespace: PDFiumSharp
Assembly: PDFiumSharp (in PDFiumSharp.dll) Version: 1.0.0
C#
public static FPDF_DOCUMENT FPDF_LoadDocument(
string file_path,
string password
)
- file_path
- Type: System.String
Path to the PDF file (including extension). - password
- Type: System.String
A string used as the password for the PDF file. If no password is needed, Empty ornull
can be used.
Type: FPDF_DOCUMENT
A handle to the loaded document, or NULL on failure.
Loaded document can be closed by FPDF_CloseDocument(FPDF_DOCUMENT). If this function fails, you can use FPDF_GetLastError() to retrieve the reason why it failed.
PDFium Class
FPDF_LoadDocument Overload
PDFiumSharp Namespace
PdfDocument.PdfDocument(String, String)