M_PDFiumSharp_PDFium_FPDF_LoadDocument_2 - ArgusMagnus/PDFiumSharp GitHub Wiki

PDFium.FPDF_LoadDocument Method (String, String)

Open and load a PDF document.

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

Syntax

C#

public static FPDF_DOCUMENT FPDF_LoadDocument(
	string file_path,
	string password
)

Parameters

 

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 or null can be used.

Return Value

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

Remarks

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.

See Also

Reference

PDFium Class
FPDF_LoadDocument Overload
PDFiumSharp Namespace
PdfDocument.PdfDocument(String, String)

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