M_PDFiumSharp_PDFium_FPDF_LoadCustomDocument - ArgusMagnus/PDFiumSharp GitHub Wiki
Load PDF document from a custom access descriptor.
Namespace: PDFiumSharp
Assembly: PDFiumSharp (in PDFiumSharp.dll) Version: 1.0.0
C#
public static FPDF_DOCUMENT FPDF_LoadCustomDocument(
FPDF_FILEREAD fileRead,
string password
)
- fileRead
- Type: PDFiumSharp.Types.FPDF_FILEREAD
A structure for accessing the file. - password
- Type: System.String
Optional password for decrypting the PDF file.
Type: FPDF_DOCUMENT
A handle to the loaded document, or NULL on failure.
The application must keep the file resources valid until the PDF document is closed. The loaded document can be closed with FPDF_CloseDocument.
If PDFium is built with the XFA module, the application should call [!:FPDF_LoadXFA] function after the PDF document loaded to support XFA fields defined in the fpdfformfill.h file.
PDFium Class
PDFiumSharp Namespace
PdfDocument.PdfDocument(Stream, Int32, String)