1#import <Foundation/Foundation.h>
4typedef NS_ENUM(NSInteger, OCRLanguage) {
6 OCRLanguageUnknown = 0,
8 OCRLanguageChinese = 1,
10 OCRLanguageChineseTraditional = 2,
12 OCRLanguageEnglish = 3,
14 OCRLanguageKorean = 4,
16 OCRLanguageJapanese = 5,
20 OCRLanguageDevanagari = 7,
22 OCRLanguageCyrillic = 8,
24 OCRLanguageArabic = 9,
26 OCRLanguageTamil = 10,
28 OCRLanguageTelugu = 11,
30 OCRLanguageKannada = 12,
34 OCRLanguageGreek = 14,
36 OCRLanguageEslav = 15,
42typedef NS_ENUM(NSInteger, ErrorCode) {
50 ErrorCodePDFPassword = 3,
54 ErrorCodePDFFormat = 5,
56 ErrorCodePDFSecurity = 6,
58 ErrorCodeOutOfMemory = 7,
62 ErrorCodeCompress = 9,
65 ErrorCodeLicenseInvalid = 20,
67 ErrorCodeLicenseExpire = 21,
69 ErrorCodeLicenseUnsupportedPlatform = 22,
71 ErrorCodeLicenseUnsupportedID = 23,
73 ErrorCodeLicenseUnsupportedDevice = 24,
75 ErrorCodeLicensePermissionDeny = 25,
77 ErrorCodeLicenseUninitialized = 26,
79 ErrorCodeLicenseIllegalAccess = 27,
81 ErrorCodeLicenseFileReadFailed = 28,
83 ErrorCodeLicenseOCRPermissionDeny = 29,
86 ErrorCodeNoTable = 40,
88 ErrorCodeOCRFailure = 41,
91 ErrorCodeConverting = 60,
94 ErrorCodeInvalidArg = 80,
97 ErrorCodeInvalidHandle = 81,
100 ErrorCodeModelInvalidFormat = 82,
103 ErrorCodeModelFunctionUnsupported = 83,
106 ErrorCodeModelFormatUnsupported = 84,
109 ErrorCodeModelSDKMismatch = 85,
112 ErrorCodeImageDataEmpty = 86,
115 ErrorCodeImageWHError = 87,
118 ErrorCodeImageUnsupportedFormat = 88,
121 ErrorCodeImageInvalid = 89,
124 ErrorCodeExpire = 90,
127 ErrorCodeMissingArg = 91,
130 ErrorCodeLicenseUnsupportedAPI = 92,
133 ErrorCodeLicenseMismatch = 93,
136 ErrorCodeInvalidTable = 94,
139 ErrorCodeUnknown = 100
143typedef NS_ENUM(NSInteger, PageLayoutMode) {
151typedef NS_ENUM(NSInteger, ImageColorMode) {
161typedef NS_ENUM(NSInteger, ImageType) {
183typedef NS_ENUM(NSInteger, ExcelWorksheetOption){
185 ExcelWorksheetForTable,
187 ExcelWorksheetForPage,
189 ExcelWorksheetForDocument
193typedef NS_ENUM(NSInteger, htmlPageOption){
195 HtmlOptionSinglePage,
197 HtmlOptionSinglePageWithBookmark,
201 HtmlOptionMultiPageWithBookmark,
205typedef NS_ENUM(NSInteger, OCROption) {
207 OCROptionInvalidCharacter,
211 OCROptionInvalidCharacterAndScanPage,
472@property (nonatomic, assign) ImageType
Type;
BOOL excelCSVFormat
Whether to save as CSV format.
ExcelWorksheetOption excelWorksheetOption
Whether each worksheet contains only one table.
BOOL imagePathEnhance
Whether to enhance image paths.
PageLayoutMode pageLayoutMode
Page layout mode.
BOOL containImage
Whether to include images (only effective when OCR is disabled)
BOOL txtTableFormat
Whether to format tables when converting to TXT.
BOOL enableOCR
Whether to enable OCR.
htmlPageOption htmlPageOption
Specify the Html page option.
ImageType imageType
Image file type.
BOOL excelAllContent
Whether to export all content to Excel.
BOOL contain_page_background_image
Whether to contain page background images when converting,which takes effect only when enable_ocr is ...
BOOL output_document_per_page
whether to output one document per page.
NSString * pageRanges
Page ranges for conversion (e.g. "1-3,5,7-9")
ImageColorMode imageColorMode
Image color mode.
BOOL jsonContainTable
Whether to include tables when converting to JSON.
BOOL auto_create_folder
Whether to automatically create folder when exporting multiple documents.
BOOL enableAILayout
Whether to remove AI content during conversion.
BOOL containAnnotation
Whether to include annotations.
OCROption ocrOption
OCR option scope.
BOOL formulaToImage
Convert formulas to images.
float imageScaling
Image scaling ratio.
PDF to Excel conversion parameter object.
BOOL AllContent
Whether to export all content to Excel.
PageLayoutMode pageLayoutMode
Page layout mode.
OCROption ocrOption
OCR option scope.
BOOL containImage
Whether to include images (only effective when OCR is disabled)
BOOL auto_create_folder
Whether to automatically create folder when exporting multiple documents.
BOOL CSVFormat
Whether to save as CSV format.
ExcelWorksheetOption excelWorksheetOption
Whether each worksheet contains only one table.
BOOL containAnnotation
Whether to include annotations.
NSString * pageRanges
Page ranges for conversion (e.g. "1-3,5,7-9")
BOOL output_document_per_page
whether to output one document per page.
BOOL formulaToImage
Convert formulas to images.
BOOL enableAILayout
Whether to remove AI content during conversion.
BOOL enableOCR
Whether to enable OCR.
PDF to Html conversion parameter object.
BOOL enableAILayout
Whether to remove AI content during conversion.
htmlPageOption htmlPageOption
html page option
BOOL containAnnotation
Whether to include annotations.
BOOL contain_page_background_image
Whether to contain page background images when converting,which takes effect only when enable_ocr is ...
BOOL containImage
Whether to include images (only effective when OCR is disabled)
BOOL output_document_per_page
whether to output one document per page.
OCROption ocrOption
OCR option scope.
BOOL enableOCR
Whether to enable OCR.
BOOL formulaToImage
Convert formulas to images.
PageLayoutMode pageLayoutMode
Page layout mode.
NSString * pageRanges
Page ranges for conversion (e.g. "1-3,5,7-9")
PDF to Image conversion parameter object.
NSString * pageRanges
Page ranges for conversion (e.g. "1-3,5,7-9")
ImageType Type
Image file type.
ImageColorMode ColorMode
Image color mode.
float Scaling
Image scaling ratio.
BOOL PathEnhance
Whether to enhance image paths.
PDF to Json conversion parameter object.
NSString * pageRanges
Page ranges for conversion (e.g. "1-3,5,7-9")
BOOL ContainTable
Whether to include tables when converting to JSON.
BOOL output_document_per_page
whether to output one document per page.
BOOL containAnnotation
Whether to include annotations.
BOOL enableAILayout
Whether to remove AI content during conversion.
BOOL containImage
Whether to include images (only effective when OCR is disabled)
OCROption ocrOption
OCR option scope.
BOOL enableOCR
Whether to enable OCR.
PDF to Markdown conversion parameter object.
BOOL enableOCR
Whether to enable OCR.
BOOL containAnnotation
Whether to include annotations.
BOOL output_document_per_page
whether to output one document per page.
BOOL containImage
Whether to include images (only effective when OCR is disabled)
BOOL enableAILayout
Whether to remove AI content during conversion.
OCROption ocrOption
OCR option scope.
NSString * pageRanges
Page ranges for conversion (e.g. "1-3,5,7-9")
PDF to PPT conversion parameter object.
BOOL enableOCR
Whether to enable OCR.
BOOL enableAILayout
Whether to remove AI content during conversion.
BOOL containImage
Whether to include images (only effective when OCR is disabled)
BOOL containAnnotation
Whether to include annotations.
NSString * pageRanges
Page ranges for conversion (e.g. "1-3,5,7-9")
BOOL contain_page_background_image
Whether to contain page background images when converting,which takes effect only when enable_ocr is ...
BOOL output_document_per_page
whether to output one document per page.
BOOL formulaToImage
Convert formulas to images.
OCROption ocrOption
OCR option scope.
PDF to RTF conversion parameter object.
NSString * pageRanges
Page ranges for conversion (e.g. "1-3,5,7-9")
BOOL containAnnotation
Whether to include annotations.
BOOL containImage
Whether to include images (only effective when OCR is disabled)
BOOL enableOCR
Whether to enable OCR.
OCROption ocrOption
OCR option scope.
BOOL formulaToImage
Convert formulas to images.
BOOL contain_page_background_image
Whether to contain page background images when converting,which takes effect only when enable_ocr is ...
BOOL enableAILayout
Whether to remove AI content during conversion.
BOOL output_document_per_page
whether to output one document per page.
PDF to SearchablePdf conversion parameter object.
BOOL contain_page_background_image
Whether to contain page background images when converting,which takes effect only when enable_ocr is ...
NSString * pageRanges
Page ranges for conversion (e.g. "1-3,5,7-9")
BOOL formulaToImage
Convert formulas to images.
BOOL containImage
Whether to include images (only effective when OCR is disabled)
BOOL enableOCR
Whether to enable OCR.
OCROption ocrOption
OCR option scope.
BOOL output_document_per_page
whether to output one document per page.
PDF to TXT conversion parameter object.
NSString * pageRanges
Page ranges for conversion (e.g. "1-3,5,7-9")
BOOL enableOCR
Whether to enable OCR.
BOOL output_document_per_page
whether to output one document per page.
OCROption ocrOption
OCR option scope.
BOOL TableFormat
Whether to format tables when converting to TXT.
BOOL enableAILayout
Whether to remove AI content during conversion.
PDF to Word conversion parameter object.
OCROption ocrOption
OCR option scope.
BOOL containImage
Whether to include images (only effective when OCR is disabled)
BOOL contain_page_background_image
Whether to contain page background images when converting,which takes effect only when enable_ocr is ...
BOOL enableAILayout
Whether to remove AI content during conversion.
BOOL formulaToImage
Convert formulas to images.
BOOL containAnnotation
Whether to include annotations.
BOOL enableOCR
Whether to enable OCR.
BOOL output_document_per_page
whether to output one document per page.
PageLayoutMode pageLayoutMode
Page layout mode.
NSString * pageRanges
Page ranges for conversion (e.g. "1-3,5,7-9")