Click or drag to resize

PdfiumFPDF_InitLibrary Method

Initialize the Pdfium SDK library

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static void FPDF_InitLibrary(
	string licenseKey,
	string specificPath,
	int syncMode = 0
)

Parameters

licenseKey  String
Your license kuy oe null for trial
specificPath  String
Path to the pdfium dynamic library (.dll/.dylib). See remarks sections for detail.
syncMode  Int32  (Optional)
Reserved. Must be 0.
Remarks

You have to call this function before you can call any PDF processing functions.

In some cases, library initializer can not find pdfim.dll library to download. A typical example of this situation is a Web application. Web apps is running in a IIS working directory, unlike the classical apps. As a consequence, standard LoadLibrary function can not find the dll during loading process.

In this case, you must explicitly specify the full path to the pdfium(.dll/.dylib) file through specificPath parameter in the initialization method.

See Also