![]() | PdfiumFPDF_ |
public static void FPDF_InitLibrary( string licenseKey, string specificPath, int syncMode = 0 )
Public Shared Sub FPDF_InitLibrary ( licenseKey As String, specificPath As String, Optional syncMode As Integer = 0 )
public: static void FPDF_InitLibrary( String^ licenseKey, String^ specificPath, int syncMode = 0 )
static member FPDF_InitLibrary : licenseKey : string * specificPath : string * ?syncMode : int (* Defaults: let _syncMode = defaultArg syncMode 0 *) -> unit
public static void FPDF_InitLibrary( String licenseKey, String specificPath, int syncMode = 0 )
Patagames.Pdf.Pdfium.FPDF_InitLibrary = function(licenseKey, specificPath, syncMode);
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.