M_PDFiumSharp_PDFium_FPDF_LoadCustomDocument - ArgusMagnus/PDFiumSharp GitHub Wiki

PDFium.FPDF_LoadCustomDocument Method

Load PDF document from a custom access descriptor.

Namespace: PDFiumSharp
Assembly: PDFiumSharp (in PDFiumSharp.dll) Version: 1.0.0

Syntax

C#

public static FPDF_DOCUMENT FPDF_LoadCustomDocument(
	FPDF_FILEREAD fileRead,
	string password
)

Parameters

 

fileRead
Type: PDFiumSharp.Types.FPDF_FILEREAD
A structure for accessing the file.
password
Type: System.String
Optional password for decrypting the PDF file.

Return Value

Type: FPDF_DOCUMENT
A handle to the loaded document, or NULL on failure.

Remarks

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.

See Also

Reference

PDFium Class
PDFiumSharp Namespace
PdfDocument.PdfDocument(Stream, Int32, String)

⚠️ **GitHub.com Fallback** ⚠️