Manages all operations related to the SDK library.
More...
#include <common.h>
Manages all operations related to the SDK library.
Definition at line 19 of file common.h.
◆ getPageCount:password:
| + (int) getPageCount: |
|
(NSString *) | filePath |
| password: |
|
(NSString *) | password |
Get the number of pages in the document.
- Parameters
-
| filePath | File path. |
| password | Password required to open the document (if any). |
- Returns
- Total number of pages in the document.
◆ getVersion
| + (NSString *) getVersion |
|
|
|
◆ initialize:
| + (void) initialize: |
|
(NSString *) | resourcePath |
|
Initialize the SDK.
- Parameters
-
| resourcePath | The resource file path for the SDK. |
◆ licenseVerify:deviceId:appId:
| + (ErrorCode) licenseVerify: |
|
(NSString *) | license |
| deviceId: |
|
(NSString *) | deviceId |
| appId: |
|
(NSString *) | appId |
Verify the SDK license.
- Parameters
-
| license | License string. |
| deviceId | Unique device identifier. |
| appId | Application identifier. |
- Returns
- Error code, 0 for success.
◆ release
◆ setDocumentAIModel:ocrLanguage:
| + (int) setDocumentAIModel: |
|
(NSString *) | modelPath |
| ocrLanguage: |
|
(OCRLanguage) | language |
Set the Document AI model.
- Parameters
-
| modelPath | Model file path. |
| ocrLanguage | OCR recognition language. |
- Returns
- Error code, 0 for success.
◆ setOCRLanguage:
| + (void) setOCRLanguage: |
|
(OCRLanguage) | language |
|
Set the OCR recognition language.
- Parameters
-
| language | OCR recognition language. |
◆ setProgress:isMT:
| + (void) setProgress: |
|
(COMProgressBlock) | handler |
| isMT: |
|
(BOOL) | isMT |
Set the progress callback.
- Parameters
-
| handler | Progress callback block. |
| isMT | Whether to use multithreading. |
The documentation for this class was generated from the following file: