ComPDFKit Objective-C SDK
API Reference Documentation for ComPDFKit Objective-C SDK
Loading...
Searching...
No Matches
LibraryManager Class Reference

Manages all operations related to the SDK library. More...

#include <common.h>

Inheritance diagram for LibraryManager:

Class Methods

(void) + initialize:
(ErrorCode) + licenseVerify:deviceId:appId:
(void) + setProgress:isMT:
(int) + setDocumentAIModel:ocrLanguage:
(void) + setOCRLanguage:
(int) + getPageCount:password:
(NSString *) + getVersion
(void) + release

Detailed Description

Manages all operations related to the SDK library.

Definition at line 19 of file common.h.

Method Documentation

◆ getPageCount:password:

+ (int) getPageCount: (NSString *) filePath
password: (NSString *) password 

Get the number of pages in the document.

Parameters
filePathFile path.
passwordPassword required to open the document (if any).
Returns
Total number of pages in the document.

◆ getVersion

+ (NSString *) getVersion

Get the SDK version number.

Returns
Version string.

References getVersion.

Referenced by getVersion.

◆ initialize:

+ (void) initialize: (NSString *) resourcePath

Initialize the SDK.

Parameters
resourcePathThe resource file path for the SDK.

◆ licenseVerify:deviceId:appId:

+ (ErrorCode) licenseVerify: (NSString *) license
deviceId: (NSString *) deviceId
appId: (NSString *) appId 

Verify the SDK license.

Parameters
licenseLicense string.
deviceIdUnique device identifier.
appIdApplication identifier.
Returns
Error code, 0 for success.

◆ release

+ (void) release

Release SDK resources.

References release.

Referenced by release.

◆ setDocumentAIModel:ocrLanguage:

+ (int) setDocumentAIModel: (NSString *) modelPath
ocrLanguage: (OCRLanguage) language 

Set the Document AI model.

Parameters
modelPathModel file path.
ocrLanguageOCR recognition language.
Returns
Error code, 0 for success.

◆ setOCRLanguage:

+ (void) setOCRLanguage: (OCRLanguage) language

Set the OCR recognition language.

Parameters
languageOCR recognition language.

◆ setProgress:isMT:

+ (void) setProgress: (COMProgressBlock) handler
isMT: (BOOL) isMT 

Set the progress callback.

Parameters
handlerProgress callback block.
isMTWhether to use multithreading.

The documentation for this class was generated from the following file: