Inherits FoxitPDFConversionSDKPython3._object.
This class represents the library management. It contains functions to initialize/re-initialize/release Foxit PDF Conversion SDK library, and also contains functions for global use.
Any application should load Foxit PDF Conversion SDK by function FoxitPDFConversionSDKPython3.Library.Initialize before calling any other Foxit PDF Conversion SDK functions. When there is no need to use Foxit PDF Conversion SDK any more, please call function FoxitPDFConversionSDKPython3.Library.Release .
Functions in Foxit PDF Conversion SDK may throw exception when some error occurs. User can catch these exceptions and check the error code with values starting from FoxitPDFConversionSDKPython3.e_ErrFile to know more about what error occurs.
- Note
- During the life-cycle of an application, FoxitPDFConversionSDKPython3.Library.Initialize and FoxitPDFConversionSDKPython3.Library.Release should be called in pair and can only be called once. Once FoxitPDFConversionSDKPython3.Library.Release is called during the life-cycle of an application, Foxit PDF Conversion SDK cannot be initialized any more in the life-cycle of the application. Before FoxitPDFConversionSDKPython3.Library.Release is called, if user wants to re-initialize Foxit PDF Conversion SDK, please refer to function FoxitPDFConversionSDKPython3.Library.Reinitialize .
◆ EnableThreadSafety()
FoxitPDFConversionSDKPython3.Library.EnableThreadSafety |
( |
|
is_enable_thread_safety | ) |
|
|
static |
Enable thread safety.
- Parameters
-
[in] | is_enable_thread_safety | Enable thread safety.true means to enable thread safety, while false means to disable thread safety. |
- Returns
- None.
◆ GetVersion()
FoxitPDFConversionSDKPython3.Library.GetVersion |
( |
| ) |
|
|
static |
Get the version of current Foxit PDF Conversion SDK library.
- Returns
- Version string.
◆ Initialize()
FoxitPDFConversionSDKPython3.Library.Initialize |
( |
|
sn, |
|
|
|
key |
|
) |
| |
|
static |
◆ Reinitialize()
FoxitPDFConversionSDKPython3.Library.Reinitialize |
( |
| ) |
|
|
static |
◆ Release()
FoxitPDFConversionSDKPython3.Library.Release |
( |
| ) |
|
|
static |
Release all resource allocated by Foxit PDF Conversion SDK Library.
User should call this function to release all memory blocks allocated by the library.
Once this fucntion is called, Foxit PDF Conversion SDK library cannot be initialized any more in the life-cycle of the application.
- Returns
- None.