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