Click or drag to resize

LibraryManager Class

Manages all operations related to the SDK library. The `LibraryManager` class serves as a central hub for managing the lifecycle of an SDK library. It provides functionalities such as initializing the library with specified resources, verifying licenses, installing fonts, setting up logging and progress callbacks, retrieving version information, and counting pages in documents.
Inheritance Hierarchy
SystemObject
  ComPDF_Conversion.CommonLibraryManager

Namespace: ComPDF_Conversion.Common
Assembly: cpdfconversionsdk_dotnet (in cpdfconversionsdk_dotnet.dll) Version: 3.2.0.0 (3.2.0.0)
Syntax
C#
public class LibraryManager

The LibraryManager type exposes the following members.

Constructors
 NameDescription
Public methodLibraryManager 
Top
Methods
 NameDescription
Public methodStatic memberGetPageCount Returns the number of pages in a document.
Public methodStatic memberGetVersion Gets the version of the SDK library.
Public methodStatic memberInitialize Initializes the SDK with the specified resource path.
Public methodStatic memberInitLibrary Initializes the library with the specified library path.
Public methodStatic memberLicenseVerify Verifies the provided license key along with device ID and application ID.
Public methodStatic memberOnlineLicenseVerify When the result in the registry is empty, it needs to be read from the remote server.
When the result in the registry is not empty, it is first verified locally.
Then, the remote content is read during the program execution.
If the remote content is different from the local content, the local content will be updated.
Otherwise, it will be not updated.
Public methodStatic memberRelease Releases all resources used by the library. Should be called when the SDK is no longer needed.
Public methodStatic memberReleaseDocumentAIModel Release the memory by the AI model. If you want to use the AI function again after this call, you need to call the SetDocumentAIModel interface again.
Public methodStatic memberSetDocumentAIModel Sets the Document AI model for OCR based on the provided file path and language.
Public methodStatic memberSetOCRLanguage Sets the OCR language for document processing.
Public methodStatic memberSetProgress Sets a callback function to track the progress of SDK operations.
Top
Events
 NameDescription
Public eventStatic memberLicenseRefreshed 
Top
See Also