ImageEn, unit iexUserInteractions

PDFiumLibAvailable


Declaration

function PDFiumLibAvailable(RaiseExcept: Boolean = False; ExeFolderOnly: Boolean = True) : Boolean; overload;
function PDFiumLibAvailable(RaiseExcept: Boolean; const DLLPath: String) : Boolean; overload;


Description

Checks if the PDFium DLL is available (and initializes it).
If RaiseExcept is true, an exception will occur if the DLL is not found.
If ExeFolderOnly is true, only the folder of the application EXE is checked for IEVision DLLs.

Note: You can use RegisterPlugIns as an alternative to PDFiumLibAvailable. See example below...


Example

if not PDFiumLibAvailable( False ) then
  ShowMessage( 'PDF DLL not found! Please reinstall' );

// Which is the same as:
IEGlobalSettings().RegisterPlugIns( [iepiPDFium] );
if not ( iepiPDFium in IEGlobalSettings().ActivePlugIns ) then
  ShowMessage( 'PDF DLL not found! Please reinstall' );


See Also

 RegisterPlugIns
 DLLLoadingLog