|
static void | enableThreadSafety (boolean is_enable_thread_safety) |
| Enable thread safety. More...
|
|
static String | getVersion () throws com.foxit.sdk.PDFException |
| Get the version of current Foxit PDF Conversion SDK library. More...
|
|
static int | initialize (String sn, String key) throws com.foxit.sdk.PDFException |
| Initialize Foxit PDF Conversion SDK Library, with valid license information. More...
|
|
static int | reinitialize () throws com.foxit.sdk.PDFException |
| Re-initialize Foxit PDF Conversion SDK Library. More...
|
|
static void | release () throws com.foxit.sdk.PDFException |
| Release all resource allocated by Foxit PDF Conversion SDK Library. More...
|
|
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 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 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 com.foxit.sdk.common.Constants.e_ErrFile to know more about what error occurs.
- Note
- During the life-cycle of an application, Library.initialize and Library.release should be called in pair and can only be called once. Once 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 Library.release is called, if user wants to re-initialize Foxit PDF Conversion SDK, please refer to function Library.reinitialize .