Click or drag to resize

PdfiumFPDF_InitLibrary Method

Initialize the Pdfium SDK library

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 5.1.3
Syntax
public static void FPDF_InitLibrary(
	string licenseKey,
	string specificPath,
	string pathToIcu = null,
	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.
pathToIcu  String  (Optional)
Path to the icudt.dll. Applicable for windows only.
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