ComPDFKitConversion 3.0.0__cp311-cp311-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ComPDFKitConversion-3.0.0.dist-info/METADATA +66 -0
- ComPDFKitConversion-3.0.0.dist-info/RECORD +15 -0
- ComPDFKitConversion-3.0.0.dist-info/WHEEL +5 -0
- ComPDFKitConversion-3.0.0.dist-info/top_level.txt +1 -0
- ComPDFKitConversion.cp311-win_amd64.pyd +0 -0
- ComPDFKitConversion.pyi +683 -0
- DocumentAI.dll +0 -0
- cpdfconversionsdk.dll +0 -0
- fastdeploy.dll +0 -0
- onnxruntime.dll +0 -0
- onnxruntime_providers_shared.dll +0 -0
- opencv_world480.dll +0 -0
- paddle2onnx.dll +0 -0
- yaml-cpp.dll +0 -0
- zlib.dll +0 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: ComPDFKitConversion
|
|
3
|
+
Version: 3.0.0
|
|
4
|
+
Summary: ComPDFKit Conversion Python SDK
|
|
5
|
+
Home-page: https://www.compdf.com
|
|
6
|
+
Author: PDF Technologies, Inc.
|
|
7
|
+
Author-email: support@compdf.com
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
9
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Requires-Python: >=3.6
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
|
|
14
|
+
# ComPDFKit Conversion SDK For Python
|
|
15
|
+
|
|
16
|
+
ComPDFKit Conversion SDK is a high-performance library designed for extracting and transforming the data within your PDF files, such as text, images, tables, links, and annotations, into various file formats. Our Conversion SDK retains the original document layout and the properties of the file data, ensuring a seamless document conversion experience.
|
|
17
|
+
|
|
18
|
+
Effortlessly integrate the ComPDFKit Conversion SDK into your projects in just a few steps, and enable the following file format conversions:
|
|
19
|
+
|
|
20
|
+
- Convert PDF to Word (.docx)
|
|
21
|
+
- Convert PDF to Excel (.xlsx)
|
|
22
|
+
- Convert PDF to PowerPoint (.pptx)
|
|
23
|
+
- Convert PDF to HTML (.html)
|
|
24
|
+
- Convert PDF to CSV (.csv)
|
|
25
|
+
- Convert PDF to Image (.png, .jpg, .jpeg, .bmp, .tiff)
|
|
26
|
+
- Convert PDF to Plain Text (.txt)
|
|
27
|
+
- Convert PDF to Rich Text Format (.rtf)
|
|
28
|
+
- Convert PDF to Structured Data (.json)
|
|
29
|
+
- Convert PDF to Markdown (.md)
|
|
30
|
+
|
|
31
|
+
Harness the power of ComPDFKit Conversion SDK and take your document processing to the next level with intelligent tools designed for accuracy and efficiency. To enhance your format conversion results, ComPDFKit offers AI-powered document tools with the following capabilities:
|
|
32
|
+
|
|
33
|
+
- Optical Character Recognition (OCR)
|
|
34
|
+
- Layout Analysis
|
|
35
|
+
- Table Recognition
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## Why ComPDFKit Conversion SDK
|
|
39
|
+
|
|
40
|
+
- Mature Technology
|
|
41
|
+
|
|
42
|
+
With years of technology accumulation, we have established a complete mechanism of product iteration to offer a continuous guarantee for product competitiveness.
|
|
43
|
+
|
|
44
|
+
- Complete PDF and Format Conversion Functionalities
|
|
45
|
+
|
|
46
|
+
Our comprehensive features can meet diverse needs and are easy for our customers to use without training costs.
|
|
47
|
+
|
|
48
|
+
- High-quality Service
|
|
49
|
+
|
|
50
|
+
professional service and technical support to quickly respond to users' feedback through onsite service or remote support like telephone, email, etc.
|
|
51
|
+
|
|
52
|
+
- Independent Intellectual
|
|
53
|
+
|
|
54
|
+
Property Rights
|
|
55
|
+
Our technology is independent and compliant with ISO, helping enterprises conduct international business without considering copyright risks.
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
## ComPDFKit Conversion SDK
|
|
59
|
+
|
|
60
|
+
The ComPDFKit Conversion SDK is designed to facilitate the effortless conversion of PDF files into various other formats, all while preserving the original layout and formatting of the documents. In this guide, we will explore the ComPDFKit Conversion SDK and demonstrate how to utilize it within your Windows projects.
|
|
61
|
+
|
|
62
|
+
## License & Trial
|
|
63
|
+
|
|
64
|
+
The ComPDFKit Conversion SDK is a commercial SDK that requires a license to grant developers the right to develop and distribute their applications. In development mode, each license is only valid for one device ID. ComPDFKit provides flexible licensing models, please contact [our marketing team](mailto:support@compdf.com) for more information. However, even if you have a license, it is prohibited to distribute any documents, sample code, or source code of the ComPDFKit Conversion SDK to any third parties.
|
|
65
|
+
|
|
66
|
+
If you do not have a License, please feel free to contact the [ComPDFKit Team](https://www.compdf.com/contact-sales) to obtain a License to try the ComPDFKit Conversion SDK.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
ComPDFKitConversion.cp311-win_amd64.pyd,sha256=YICxXqdxaRmP4YS6hIV5tZvL3_luvfuWO4uWgnsfPRk,255488
|
|
2
|
+
ComPDFKitConversion.pyi,sha256=ZjUeCzLlfcPirXTEhWJTiJP3Cyn7LHZWFFqSRWXYmPU,28616
|
|
3
|
+
DocumentAI.dll,sha256=ueMKYWDRWjpnOJHsqDxK_m__SGMaBFqib0TzZeFVlG8,946392
|
|
4
|
+
cpdfconversionsdk.dll,sha256=EDHS3QOQDYpUPm26sSieU66N_lE6fv9awHvjv4E0Dcs,6765568
|
|
5
|
+
fastdeploy.dll,sha256=hCDpRCfb_vo5SSNOd65wwyVzgDofsMjONF8Zht-G4NM,5481984
|
|
6
|
+
onnxruntime.dll,sha256=AnavF-cHfik1XZoz0PX76xHDt-3dqDyBStPnEytTklI,8255904
|
|
7
|
+
onnxruntime_providers_shared.dll,sha256=4GCj20pY4yT59hpkdMWe0iQtDmZVHE4cGsgUJsZCSxY,21904
|
|
8
|
+
opencv_world480.dll,sha256=td7UocpOgf4HKnGD9UFj0VC2V1asYC9GuT9dwupo9FA,63153664
|
|
9
|
+
paddle2onnx.dll,sha256=fwxXrCvTW42YY75cbzIRa7kUQv4vzIQS9UPaoKIcoN8,4141568
|
|
10
|
+
yaml-cpp.dll,sha256=4H9Ibfih7xu_o33SldjoFaYQMEVRFq4B6rb0j8c24eM,254976
|
|
11
|
+
zlib.dll,sha256=AWXuySbgJ9CtQhS7Ld7ulI8Nl_C3Upv3dGXoKJc3yLM,222720
|
|
12
|
+
ComPDFKitConversion-3.0.0.dist-info/METADATA,sha256=aX4tFFwo3mXXkMbdYtFZPhLpL_iI9xLljjvlmyjcKAI,3549
|
|
13
|
+
ComPDFKitConversion-3.0.0.dist-info/WHEEL,sha256=badvNS-y9fEq0X-qzdZYvql_JFjI7Xfw-wR8FsjoK0I,102
|
|
14
|
+
ComPDFKitConversion-3.0.0.dist-info/top_level.txt,sha256=wiM_kGlJ-WTJMAUWmnkl4wlQx6IyHEBDUkyHSo_IfWc,20
|
|
15
|
+
ComPDFKitConversion-3.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ComPDFKitConversion
|
|
Binary file
|
ComPDFKitConversion.pyi
ADDED
|
@@ -0,0 +1,683 @@
|
|
|
1
|
+
"""
|
|
2
|
+
|
|
3
|
+
ComPDFKit Conversion python3 SDK
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
from __future__ import annotations
|
|
7
|
+
import typing
|
|
8
|
+
__all__ = ['AUTO', 'BINARY', 'BMP', 'BOX', 'CANCEL', 'CHINESE', 'CHINESE_TRA', 'COLOR', 'COMPRESS_ERROR', 'CONVERTING_ERROR', 'CPDFConversion', 'ConvertOptions', 'DEVANAGARI', 'ENGLISH', 'ErrorCode', 'ExcelWorksheetOption', 'FILE_ERROR', 'FLOW', 'FOR_DOCUMENT', 'FOR_PAGE', 'FOR_TABLE', 'GRAY', 'HtmlOption', 'IO_ERROR', 'ImageColorMode', 'ImageType', 'JAPANESE', 'JPEG', 'JPG', 'KOREAN', 'LATIN', 'LICENSE_EXPIRE', 'LICENSE_FILE_READ_FAILED', 'LICENSE_ILLEGAL_ACCESS', 'LICENSE_INVALID', 'LICENSE_OCR_PERMISSION_DENY', 'LICENSE_PERMISSION_DENY', 'LICENSE_UNINITIALIZED', 'LICENSE_UNSUPPORTED_DEVICE', 'LICENSE_UNSUPPORTED_ID', 'LICENSE_UNSUPPORTED_PLATFORM', 'LibraryManager', 'MULTIPLE_PAGE', 'MULTIPLE_PAGE_WITH_BOOKMARK', 'NO_TABLE_ERROR', 'OCRLanguage', 'OCR_FAILURE', 'OUT_OF_MEMORY', 'PDF_FORMAT_ERROR', 'PDF_PAGE_ERROR', 'PDF_PASSWORD_ERROR', 'PDF_SECURITY_ERROR', 'PNG', 'PageLayoutMode', 'SINGLE_PAGE', 'SINGLE_PAGE_WITH_BOOKMARK', 'SUCCESS', 'TIFF', 'UNKNOWN', 'UNKNOWN_ERROR']
|
|
9
|
+
class CPDFConversion:
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
CPDFConversion class provides functionalities to convert PDF files into various formats such as Word, Excel, PPT, HTML, etc.
|
|
13
|
+
"""
|
|
14
|
+
@staticmethod
|
|
15
|
+
def cancel() -> None:
|
|
16
|
+
"""
|
|
17
|
+
Cancels any ongoing PDF conversion process.
|
|
18
|
+
"""
|
|
19
|
+
@staticmethod
|
|
20
|
+
def start_pdf_to_excel(file_path: str, password: str, output_path: str, options: ConvertOptions) -> ErrorCode:
|
|
21
|
+
"""
|
|
22
|
+
Starts the conversion of a PDF file to an Excel document.
|
|
23
|
+
"""
|
|
24
|
+
@staticmethod
|
|
25
|
+
def start_pdf_to_html(file_path: str, password: str, output_path: str, options: ConvertOptions) -> ErrorCode:
|
|
26
|
+
"""
|
|
27
|
+
Starts the conversion of a PDF file to an HTML document.
|
|
28
|
+
"""
|
|
29
|
+
@staticmethod
|
|
30
|
+
def start_pdf_to_image(file_path: str, password: str, output_path: str, options: ConvertOptions) -> ErrorCode:
|
|
31
|
+
"""
|
|
32
|
+
Starts the conversion of a PDF file to an image format.
|
|
33
|
+
"""
|
|
34
|
+
@staticmethod
|
|
35
|
+
def start_pdf_to_json(file_path: str, password: str, output_path: str, options: ConvertOptions) -> ErrorCode:
|
|
36
|
+
"""
|
|
37
|
+
Starts the conversion of a PDF file to a JSON document.
|
|
38
|
+
"""
|
|
39
|
+
@staticmethod
|
|
40
|
+
def start_pdf_to_markdown(file_path: str, password: str, output_path: str, options: ConvertOptions) -> ErrorCode:
|
|
41
|
+
"""
|
|
42
|
+
Starts the conversion of a PDF file to a Markdown document.
|
|
43
|
+
"""
|
|
44
|
+
@staticmethod
|
|
45
|
+
def start_pdf_to_ppt(file_path: str, password: str, output_path: str, options: ConvertOptions) -> ErrorCode:
|
|
46
|
+
"""
|
|
47
|
+
Starts the conversion of a PDF file to a PowerPoint presentation.
|
|
48
|
+
"""
|
|
49
|
+
@staticmethod
|
|
50
|
+
def start_pdf_to_rtf(file_path: str, password: str, output_path: str, options: ConvertOptions) -> ErrorCode:
|
|
51
|
+
"""
|
|
52
|
+
Starts the conversion of a PDF file to an RTF document.
|
|
53
|
+
"""
|
|
54
|
+
@staticmethod
|
|
55
|
+
def start_pdf_to_searchable_pdf(file_path: str, password: str, output_path: str, options: ConvertOptions) -> ErrorCode:
|
|
56
|
+
"""
|
|
57
|
+
Starts the conversion of a PDF file to a searchable PDF document.
|
|
58
|
+
"""
|
|
59
|
+
@staticmethod
|
|
60
|
+
def start_pdf_to_txt(file_path: str, password: str, output_path: str, options: ConvertOptions) -> ErrorCode:
|
|
61
|
+
"""
|
|
62
|
+
Starts the conversion of a PDF file to a plain text file.
|
|
63
|
+
"""
|
|
64
|
+
@staticmethod
|
|
65
|
+
def start_pdf_to_word(file_path: str, password: str, output_path: str, options: ConvertOptions) -> ErrorCode:
|
|
66
|
+
"""
|
|
67
|
+
Starts the conversion of a PDF file to a Word document.
|
|
68
|
+
"""
|
|
69
|
+
class ConvertOptions:
|
|
70
|
+
def __init__(self) -> None:
|
|
71
|
+
"""
|
|
72
|
+
Default constructor
|
|
73
|
+
"""
|
|
74
|
+
def __repr__(self) -> str:
|
|
75
|
+
"""
|
|
76
|
+
String representation of ConvertOptions object
|
|
77
|
+
"""
|
|
78
|
+
def __str__(self) -> str:
|
|
79
|
+
"""
|
|
80
|
+
String representation of ConvertOptions object
|
|
81
|
+
"""
|
|
82
|
+
@property
|
|
83
|
+
def contain_annotation(self) -> bool:
|
|
84
|
+
"""
|
|
85
|
+
Whether to contain annotations when converting
|
|
86
|
+
"""
|
|
87
|
+
@contain_annotation.setter
|
|
88
|
+
def contain_annotation(self, arg0: bool) -> None:
|
|
89
|
+
...
|
|
90
|
+
@property
|
|
91
|
+
def contain_image(self) -> bool:
|
|
92
|
+
"""
|
|
93
|
+
Whether to contain images when converting, which takes effect only when IsAllowOCR is false
|
|
94
|
+
"""
|
|
95
|
+
@contain_image.setter
|
|
96
|
+
def contain_image(self, arg0: bool) -> None:
|
|
97
|
+
...
|
|
98
|
+
@property
|
|
99
|
+
def enable_ai_layout(self) -> bool:
|
|
100
|
+
"""
|
|
101
|
+
Whether to enable AI layout analysis during conversion
|
|
102
|
+
"""
|
|
103
|
+
@enable_ai_layout.setter
|
|
104
|
+
def enable_ai_layout(self, arg0: bool) -> None:
|
|
105
|
+
...
|
|
106
|
+
@property
|
|
107
|
+
def enable_ocr(self) -> bool:
|
|
108
|
+
"""
|
|
109
|
+
Whether to use OCR
|
|
110
|
+
"""
|
|
111
|
+
@enable_ocr.setter
|
|
112
|
+
def enable_ocr(self, arg0: bool) -> None:
|
|
113
|
+
...
|
|
114
|
+
@property
|
|
115
|
+
def excel_all_content(self) -> bool:
|
|
116
|
+
"""
|
|
117
|
+
Whether to set contain all pdf content to the xlsx file
|
|
118
|
+
"""
|
|
119
|
+
@excel_all_content.setter
|
|
120
|
+
def excel_all_content(self, arg0: bool) -> None:
|
|
121
|
+
...
|
|
122
|
+
@property
|
|
123
|
+
def excel_csv_format(self) -> bool:
|
|
124
|
+
"""
|
|
125
|
+
Whether to set to save the table in csv format
|
|
126
|
+
"""
|
|
127
|
+
@excel_csv_format.setter
|
|
128
|
+
def excel_csv_format(self, arg0: bool) -> None:
|
|
129
|
+
...
|
|
130
|
+
@property
|
|
131
|
+
def excel_worksheet_option(self) -> ExcelWorksheetOption:
|
|
132
|
+
"""
|
|
133
|
+
Specify the Excel worksheet option for conversion
|
|
134
|
+
"""
|
|
135
|
+
@excel_worksheet_option.setter
|
|
136
|
+
def excel_worksheet_option(self, arg0: ExcelWorksheetOption) -> None:
|
|
137
|
+
...
|
|
138
|
+
@property
|
|
139
|
+
def formula_to_image(self) -> bool:
|
|
140
|
+
"""
|
|
141
|
+
Whether to convert formula to image
|
|
142
|
+
"""
|
|
143
|
+
@formula_to_image.setter
|
|
144
|
+
def formula_to_image(self, arg0: bool) -> None:
|
|
145
|
+
...
|
|
146
|
+
@property
|
|
147
|
+
def html_option(self) -> HtmlOption:
|
|
148
|
+
"""
|
|
149
|
+
Specify the HTML option for conversion
|
|
150
|
+
"""
|
|
151
|
+
@html_option.setter
|
|
152
|
+
def html_option(self, arg0: HtmlOption) -> None:
|
|
153
|
+
...
|
|
154
|
+
@property
|
|
155
|
+
def image_color_mode(self) -> ImageColorMode:
|
|
156
|
+
"""
|
|
157
|
+
Specify the image color mode of the image file
|
|
158
|
+
"""
|
|
159
|
+
@image_color_mode.setter
|
|
160
|
+
def image_color_mode(self, arg0: ImageColorMode) -> None:
|
|
161
|
+
...
|
|
162
|
+
@property
|
|
163
|
+
def image_path_enhance(self) -> bool:
|
|
164
|
+
"""
|
|
165
|
+
Whether to enhance the image path
|
|
166
|
+
"""
|
|
167
|
+
@image_path_enhance.setter
|
|
168
|
+
def image_path_enhance(self, arg0: bool) -> None:
|
|
169
|
+
...
|
|
170
|
+
@property
|
|
171
|
+
def image_scaling(self) -> float:
|
|
172
|
+
"""
|
|
173
|
+
Specify the image scaling of the image file
|
|
174
|
+
"""
|
|
175
|
+
@image_scaling.setter
|
|
176
|
+
def image_scaling(self, arg0: float) -> None:
|
|
177
|
+
...
|
|
178
|
+
@property
|
|
179
|
+
def image_type(self) -> ImageType:
|
|
180
|
+
"""
|
|
181
|
+
Specify the image type of the image file
|
|
182
|
+
"""
|
|
183
|
+
@image_type.setter
|
|
184
|
+
def image_type(self, arg0: ImageType) -> None:
|
|
185
|
+
...
|
|
186
|
+
@property
|
|
187
|
+
def json_contain_table(self) -> bool:
|
|
188
|
+
"""
|
|
189
|
+
Whether to contain table when convert pdf to json
|
|
190
|
+
"""
|
|
191
|
+
@json_contain_table.setter
|
|
192
|
+
def json_contain_table(self, arg0: bool) -> None:
|
|
193
|
+
...
|
|
194
|
+
@property
|
|
195
|
+
def page_layout_mode(self) -> PageLayoutMode:
|
|
196
|
+
"""
|
|
197
|
+
Specify the layout mode
|
|
198
|
+
"""
|
|
199
|
+
@page_layout_mode.setter
|
|
200
|
+
def page_layout_mode(self, arg0: PageLayoutMode) -> None:
|
|
201
|
+
...
|
|
202
|
+
@property
|
|
203
|
+
def page_ranges(self) -> str:
|
|
204
|
+
"""
|
|
205
|
+
Specify the pages to convert, e.g. "1-3,5,7-9"
|
|
206
|
+
"""
|
|
207
|
+
@page_ranges.setter
|
|
208
|
+
def page_ranges(self, arg0: str) -> None:
|
|
209
|
+
...
|
|
210
|
+
@property
|
|
211
|
+
def txt_table_format(self) -> bool:
|
|
212
|
+
"""
|
|
213
|
+
Whether format table when convert pdf to txt
|
|
214
|
+
"""
|
|
215
|
+
@txt_table_format.setter
|
|
216
|
+
def txt_table_format(self, arg0: bool) -> None:
|
|
217
|
+
...
|
|
218
|
+
class ErrorCode:
|
|
219
|
+
"""
|
|
220
|
+
Members:
|
|
221
|
+
|
|
222
|
+
SUCCESS : Success, and no error occurs
|
|
223
|
+
|
|
224
|
+
CANCEL : Conversion process was canceled
|
|
225
|
+
|
|
226
|
+
FILE_ERROR : File cannot be found or could not be opened
|
|
227
|
+
|
|
228
|
+
PDF_PASSWORD_ERROR : Invalid password. Usually, this error may occur when loading a PDF document with password. When meet this, user should load document again with correct password
|
|
229
|
+
|
|
230
|
+
PDF_PAGE_ERROR : PDF page failed to load
|
|
231
|
+
|
|
232
|
+
PDF_FORMAT_ERROR : Format is invalid. For files, this may also mean that file is corrupted
|
|
233
|
+
|
|
234
|
+
PDF_SECURITY_ERROR : PDF document is encrypted by some unsupported security handler
|
|
235
|
+
|
|
236
|
+
OUT_OF_MEMORY : Out-of-memory error occurs
|
|
237
|
+
|
|
238
|
+
IO_ERROR : System I/O error
|
|
239
|
+
|
|
240
|
+
COMPRESS_ERROR : Folder compression failed
|
|
241
|
+
|
|
242
|
+
LICENSE_INVALID : The license is invalid
|
|
243
|
+
|
|
244
|
+
LICENSE_EXPIRE : The license has expired
|
|
245
|
+
|
|
246
|
+
LICENSE_UNSUPPORTED_PLATFORM : The license does not support the current platform
|
|
247
|
+
|
|
248
|
+
LICENSE_UNSUPPORTED_ID : The license does not support the application id
|
|
249
|
+
|
|
250
|
+
LICENSE_UNSUPPORTED_DEVICE : The license does not support the device id
|
|
251
|
+
|
|
252
|
+
LICENSE_PERMISSION_DENY : The license does not have the function permission
|
|
253
|
+
|
|
254
|
+
LICENSE_UNINITIALIZED : The license has not been initialized
|
|
255
|
+
|
|
256
|
+
LICENSE_ILLEGAL_ACCESS : Illegal access to the API interface
|
|
257
|
+
|
|
258
|
+
LICENSE_FILE_READ_FAILED : Failed to read license file
|
|
259
|
+
|
|
260
|
+
LICENSE_OCR_PERMISSION_DENY : The license does not have OCR permissions
|
|
261
|
+
|
|
262
|
+
NO_TABLE_ERROR : No tables found in the source file
|
|
263
|
+
|
|
264
|
+
OCR_FAILURE : Failed to call OCR recognition
|
|
265
|
+
|
|
266
|
+
CONVERTING_ERROR : Currently executing conversion task
|
|
267
|
+
|
|
268
|
+
UNKNOWN_ERROR : Unknown error
|
|
269
|
+
"""
|
|
270
|
+
CANCEL: typing.ClassVar[ErrorCode] # value = <ErrorCode.CANCEL: 1>
|
|
271
|
+
COMPRESS_ERROR: typing.ClassVar[ErrorCode] # value = <ErrorCode.COMPRESS_ERROR: 9>
|
|
272
|
+
CONVERTING_ERROR: typing.ClassVar[ErrorCode] # value = <ErrorCode.CONVERTING_ERROR: 60>
|
|
273
|
+
FILE_ERROR: typing.ClassVar[ErrorCode] # value = <ErrorCode.FILE_ERROR: 2>
|
|
274
|
+
IO_ERROR: typing.ClassVar[ErrorCode] # value = <ErrorCode.IO_ERROR: 8>
|
|
275
|
+
LICENSE_EXPIRE: typing.ClassVar[ErrorCode] # value = <ErrorCode.LICENSE_EXPIRE: 21>
|
|
276
|
+
LICENSE_FILE_READ_FAILED: typing.ClassVar[ErrorCode] # value = <ErrorCode.LICENSE_FILE_READ_FAILED: 28>
|
|
277
|
+
LICENSE_ILLEGAL_ACCESS: typing.ClassVar[ErrorCode] # value = <ErrorCode.LICENSE_ILLEGAL_ACCESS: 27>
|
|
278
|
+
LICENSE_INVALID: typing.ClassVar[ErrorCode] # value = <ErrorCode.LICENSE_INVALID: 20>
|
|
279
|
+
LICENSE_OCR_PERMISSION_DENY: typing.ClassVar[ErrorCode] # value = <ErrorCode.LICENSE_OCR_PERMISSION_DENY: 29>
|
|
280
|
+
LICENSE_PERMISSION_DENY: typing.ClassVar[ErrorCode] # value = <ErrorCode.LICENSE_PERMISSION_DENY: 25>
|
|
281
|
+
LICENSE_UNINITIALIZED: typing.ClassVar[ErrorCode] # value = <ErrorCode.LICENSE_UNINITIALIZED: 26>
|
|
282
|
+
LICENSE_UNSUPPORTED_DEVICE: typing.ClassVar[ErrorCode] # value = <ErrorCode.LICENSE_UNSUPPORTED_DEVICE: 24>
|
|
283
|
+
LICENSE_UNSUPPORTED_ID: typing.ClassVar[ErrorCode] # value = <ErrorCode.LICENSE_UNSUPPORTED_ID: 23>
|
|
284
|
+
LICENSE_UNSUPPORTED_PLATFORM: typing.ClassVar[ErrorCode] # value = <ErrorCode.LICENSE_UNSUPPORTED_PLATFORM: 22>
|
|
285
|
+
NO_TABLE_ERROR: typing.ClassVar[ErrorCode] # value = <ErrorCode.NO_TABLE_ERROR: 40>
|
|
286
|
+
OCR_FAILURE: typing.ClassVar[ErrorCode] # value = <ErrorCode.OCR_FAILURE: 41>
|
|
287
|
+
OUT_OF_MEMORY: typing.ClassVar[ErrorCode] # value = <ErrorCode.OUT_OF_MEMORY: 7>
|
|
288
|
+
PDF_FORMAT_ERROR: typing.ClassVar[ErrorCode] # value = <ErrorCode.PDF_FORMAT_ERROR: 5>
|
|
289
|
+
PDF_PAGE_ERROR: typing.ClassVar[ErrorCode] # value = <ErrorCode.PDF_PAGE_ERROR: 4>
|
|
290
|
+
PDF_PASSWORD_ERROR: typing.ClassVar[ErrorCode] # value = <ErrorCode.PDF_PASSWORD_ERROR: 3>
|
|
291
|
+
PDF_SECURITY_ERROR: typing.ClassVar[ErrorCode] # value = <ErrorCode.PDF_SECURITY_ERROR: 6>
|
|
292
|
+
SUCCESS: typing.ClassVar[ErrorCode] # value = <ErrorCode.SUCCESS: 0>
|
|
293
|
+
UNKNOWN_ERROR: typing.ClassVar[ErrorCode] # value = <ErrorCode.UNKNOWN_ERROR: 100>
|
|
294
|
+
__members__: typing.ClassVar[dict[str, ErrorCode]] # value = {'SUCCESS': <ErrorCode.SUCCESS: 0>, 'CANCEL': <ErrorCode.CANCEL: 1>, 'FILE_ERROR': <ErrorCode.FILE_ERROR: 2>, 'PDF_PASSWORD_ERROR': <ErrorCode.PDF_PASSWORD_ERROR: 3>, 'PDF_PAGE_ERROR': <ErrorCode.PDF_PAGE_ERROR: 4>, 'PDF_FORMAT_ERROR': <ErrorCode.PDF_FORMAT_ERROR: 5>, 'PDF_SECURITY_ERROR': <ErrorCode.PDF_SECURITY_ERROR: 6>, 'OUT_OF_MEMORY': <ErrorCode.OUT_OF_MEMORY: 7>, 'IO_ERROR': <ErrorCode.IO_ERROR: 8>, 'COMPRESS_ERROR': <ErrorCode.COMPRESS_ERROR: 9>, 'LICENSE_INVALID': <ErrorCode.LICENSE_INVALID: 20>, 'LICENSE_EXPIRE': <ErrorCode.LICENSE_EXPIRE: 21>, 'LICENSE_UNSUPPORTED_PLATFORM': <ErrorCode.LICENSE_UNSUPPORTED_PLATFORM: 22>, 'LICENSE_UNSUPPORTED_ID': <ErrorCode.LICENSE_UNSUPPORTED_ID: 23>, 'LICENSE_UNSUPPORTED_DEVICE': <ErrorCode.LICENSE_UNSUPPORTED_DEVICE: 24>, 'LICENSE_PERMISSION_DENY': <ErrorCode.LICENSE_PERMISSION_DENY: 25>, 'LICENSE_UNINITIALIZED': <ErrorCode.LICENSE_UNINITIALIZED: 26>, 'LICENSE_ILLEGAL_ACCESS': <ErrorCode.LICENSE_ILLEGAL_ACCESS: 27>, 'LICENSE_FILE_READ_FAILED': <ErrorCode.LICENSE_FILE_READ_FAILED: 28>, 'LICENSE_OCR_PERMISSION_DENY': <ErrorCode.LICENSE_OCR_PERMISSION_DENY: 29>, 'NO_TABLE_ERROR': <ErrorCode.NO_TABLE_ERROR: 40>, 'OCR_FAILURE': <ErrorCode.OCR_FAILURE: 41>, 'CONVERTING_ERROR': <ErrorCode.CONVERTING_ERROR: 60>, 'UNKNOWN_ERROR': <ErrorCode.UNKNOWN_ERROR: 100>}
|
|
295
|
+
def __eq__(self, other: typing.Any) -> bool:
|
|
296
|
+
...
|
|
297
|
+
def __getstate__(self) -> int:
|
|
298
|
+
...
|
|
299
|
+
def __hash__(self) -> int:
|
|
300
|
+
...
|
|
301
|
+
def __index__(self) -> int:
|
|
302
|
+
...
|
|
303
|
+
def __init__(self, value: int) -> None:
|
|
304
|
+
...
|
|
305
|
+
def __int__(self) -> int:
|
|
306
|
+
...
|
|
307
|
+
def __ne__(self, other: typing.Any) -> bool:
|
|
308
|
+
...
|
|
309
|
+
def __repr__(self) -> str:
|
|
310
|
+
...
|
|
311
|
+
def __setstate__(self, state: int) -> None:
|
|
312
|
+
...
|
|
313
|
+
def __str__(self) -> str:
|
|
314
|
+
...
|
|
315
|
+
@property
|
|
316
|
+
def name(self) -> str:
|
|
317
|
+
...
|
|
318
|
+
@property
|
|
319
|
+
def value(self) -> int:
|
|
320
|
+
...
|
|
321
|
+
class ExcelWorksheetOption:
|
|
322
|
+
"""
|
|
323
|
+
Members:
|
|
324
|
+
|
|
325
|
+
FOR_TABLE : A worksheet to contain only one table
|
|
326
|
+
|
|
327
|
+
FOR_PAGE : A worksheet to contain table for PDF Page
|
|
328
|
+
|
|
329
|
+
FOR_DOCUMENT : A worksheet to contain table for PDF Document
|
|
330
|
+
"""
|
|
331
|
+
FOR_DOCUMENT: typing.ClassVar[ExcelWorksheetOption] # value = <ExcelWorksheetOption.FOR_DOCUMENT: 2>
|
|
332
|
+
FOR_PAGE: typing.ClassVar[ExcelWorksheetOption] # value = <ExcelWorksheetOption.FOR_PAGE: 1>
|
|
333
|
+
FOR_TABLE: typing.ClassVar[ExcelWorksheetOption] # value = <ExcelWorksheetOption.FOR_TABLE: 0>
|
|
334
|
+
__members__: typing.ClassVar[dict[str, ExcelWorksheetOption]] # value = {'FOR_TABLE': <ExcelWorksheetOption.FOR_TABLE: 0>, 'FOR_PAGE': <ExcelWorksheetOption.FOR_PAGE: 1>, 'FOR_DOCUMENT': <ExcelWorksheetOption.FOR_DOCUMENT: 2>}
|
|
335
|
+
def __eq__(self, other: typing.Any) -> bool:
|
|
336
|
+
...
|
|
337
|
+
def __getstate__(self) -> int:
|
|
338
|
+
...
|
|
339
|
+
def __hash__(self) -> int:
|
|
340
|
+
...
|
|
341
|
+
def __index__(self) -> int:
|
|
342
|
+
...
|
|
343
|
+
def __init__(self, value: int) -> None:
|
|
344
|
+
...
|
|
345
|
+
def __int__(self) -> int:
|
|
346
|
+
...
|
|
347
|
+
def __ne__(self, other: typing.Any) -> bool:
|
|
348
|
+
...
|
|
349
|
+
def __repr__(self) -> str:
|
|
350
|
+
...
|
|
351
|
+
def __setstate__(self, state: int) -> None:
|
|
352
|
+
...
|
|
353
|
+
def __str__(self) -> str:
|
|
354
|
+
...
|
|
355
|
+
@property
|
|
356
|
+
def name(self) -> str:
|
|
357
|
+
...
|
|
358
|
+
@property
|
|
359
|
+
def value(self) -> int:
|
|
360
|
+
...
|
|
361
|
+
class HtmlOption:
|
|
362
|
+
"""
|
|
363
|
+
Members:
|
|
364
|
+
|
|
365
|
+
SINGLE_PAGE : Convert the entire PDF file into a single HTML file
|
|
366
|
+
|
|
367
|
+
SINGLE_PAGE_WITH_BOOKMARK : Convert the PDF file into a single HTML file with an outline for navigation at the beginning of the HTML page
|
|
368
|
+
|
|
369
|
+
MULTIPLE_PAGE : Convert the PDF file into multiple HTML files
|
|
370
|
+
|
|
371
|
+
MULTIPLE_PAGE_WITH_BOOKMARK : Convert the PDF file into multiple HTML files. Each HTML file corresponds to a PDF page, and users can navigate to the next HTML file via a link at the bottom of the HTML page
|
|
372
|
+
"""
|
|
373
|
+
MULTIPLE_PAGE: typing.ClassVar[HtmlOption] # value = <HtmlOption.MULTIPLE_PAGE: 2>
|
|
374
|
+
MULTIPLE_PAGE_WITH_BOOKMARK: typing.ClassVar[HtmlOption] # value = <HtmlOption.MULTIPLE_PAGE_WITH_BOOKMARK: 3>
|
|
375
|
+
SINGLE_PAGE: typing.ClassVar[HtmlOption] # value = <HtmlOption.SINGLE_PAGE: 0>
|
|
376
|
+
SINGLE_PAGE_WITH_BOOKMARK: typing.ClassVar[HtmlOption] # value = <HtmlOption.SINGLE_PAGE_WITH_BOOKMARK: 1>
|
|
377
|
+
__members__: typing.ClassVar[dict[str, HtmlOption]] # value = {'SINGLE_PAGE': <HtmlOption.SINGLE_PAGE: 0>, 'SINGLE_PAGE_WITH_BOOKMARK': <HtmlOption.SINGLE_PAGE_WITH_BOOKMARK: 1>, 'MULTIPLE_PAGE': <HtmlOption.MULTIPLE_PAGE: 2>, 'MULTIPLE_PAGE_WITH_BOOKMARK': <HtmlOption.MULTIPLE_PAGE_WITH_BOOKMARK: 3>}
|
|
378
|
+
def __eq__(self, other: typing.Any) -> bool:
|
|
379
|
+
...
|
|
380
|
+
def __getstate__(self) -> int:
|
|
381
|
+
...
|
|
382
|
+
def __hash__(self) -> int:
|
|
383
|
+
...
|
|
384
|
+
def __index__(self) -> int:
|
|
385
|
+
...
|
|
386
|
+
def __init__(self, value: int) -> None:
|
|
387
|
+
...
|
|
388
|
+
def __int__(self) -> int:
|
|
389
|
+
...
|
|
390
|
+
def __ne__(self, other: typing.Any) -> bool:
|
|
391
|
+
...
|
|
392
|
+
def __repr__(self) -> str:
|
|
393
|
+
...
|
|
394
|
+
def __setstate__(self, state: int) -> None:
|
|
395
|
+
...
|
|
396
|
+
def __str__(self) -> str:
|
|
397
|
+
...
|
|
398
|
+
@property
|
|
399
|
+
def name(self) -> str:
|
|
400
|
+
...
|
|
401
|
+
@property
|
|
402
|
+
def value(self) -> int:
|
|
403
|
+
...
|
|
404
|
+
class ImageColorMode:
|
|
405
|
+
"""
|
|
406
|
+
Members:
|
|
407
|
+
|
|
408
|
+
COLOR : Color mode
|
|
409
|
+
|
|
410
|
+
GRAY : Gray mode
|
|
411
|
+
|
|
412
|
+
BINARY : Binary mode
|
|
413
|
+
"""
|
|
414
|
+
BINARY: typing.ClassVar[ImageColorMode] # value = <ImageColorMode.BINARY: 2>
|
|
415
|
+
COLOR: typing.ClassVar[ImageColorMode] # value = <ImageColorMode.COLOR: 0>
|
|
416
|
+
GRAY: typing.ClassVar[ImageColorMode] # value = <ImageColorMode.GRAY: 1>
|
|
417
|
+
__members__: typing.ClassVar[dict[str, ImageColorMode]] # value = {'COLOR': <ImageColorMode.COLOR: 0>, 'GRAY': <ImageColorMode.GRAY: 1>, 'BINARY': <ImageColorMode.BINARY: 2>}
|
|
418
|
+
def __eq__(self, other: typing.Any) -> bool:
|
|
419
|
+
...
|
|
420
|
+
def __getstate__(self) -> int:
|
|
421
|
+
...
|
|
422
|
+
def __hash__(self) -> int:
|
|
423
|
+
...
|
|
424
|
+
def __index__(self) -> int:
|
|
425
|
+
...
|
|
426
|
+
def __init__(self, value: int) -> None:
|
|
427
|
+
...
|
|
428
|
+
def __int__(self) -> int:
|
|
429
|
+
...
|
|
430
|
+
def __ne__(self, other: typing.Any) -> bool:
|
|
431
|
+
...
|
|
432
|
+
def __repr__(self) -> str:
|
|
433
|
+
...
|
|
434
|
+
def __setstate__(self, state: int) -> None:
|
|
435
|
+
...
|
|
436
|
+
def __str__(self) -> str:
|
|
437
|
+
...
|
|
438
|
+
@property
|
|
439
|
+
def name(self) -> str:
|
|
440
|
+
...
|
|
441
|
+
@property
|
|
442
|
+
def value(self) -> int:
|
|
443
|
+
...
|
|
444
|
+
class ImageType:
|
|
445
|
+
"""
|
|
446
|
+
Members:
|
|
447
|
+
|
|
448
|
+
JPG : .jpg
|
|
449
|
+
|
|
450
|
+
JPEG : .jpeg
|
|
451
|
+
|
|
452
|
+
PNG : .png
|
|
453
|
+
|
|
454
|
+
BMP : .bmp
|
|
455
|
+
|
|
456
|
+
TIFF : .tiff
|
|
457
|
+
"""
|
|
458
|
+
BMP: typing.ClassVar[ImageType] # value = <ImageType.BMP: 3>
|
|
459
|
+
JPEG: typing.ClassVar[ImageType] # value = <ImageType.JPEG: 1>
|
|
460
|
+
JPG: typing.ClassVar[ImageType] # value = <ImageType.JPG: 0>
|
|
461
|
+
PNG: typing.ClassVar[ImageType] # value = <ImageType.PNG: 2>
|
|
462
|
+
TIFF: typing.ClassVar[ImageType] # value = <ImageType.TIFF: 4>
|
|
463
|
+
__members__: typing.ClassVar[dict[str, ImageType]] # value = {'JPG': <ImageType.JPG: 0>, 'JPEG': <ImageType.JPEG: 1>, 'PNG': <ImageType.PNG: 2>, 'BMP': <ImageType.BMP: 3>, 'TIFF': <ImageType.TIFF: 4>}
|
|
464
|
+
def __eq__(self, other: typing.Any) -> bool:
|
|
465
|
+
...
|
|
466
|
+
def __getstate__(self) -> int:
|
|
467
|
+
...
|
|
468
|
+
def __hash__(self) -> int:
|
|
469
|
+
...
|
|
470
|
+
def __index__(self) -> int:
|
|
471
|
+
...
|
|
472
|
+
def __init__(self, value: int) -> None:
|
|
473
|
+
...
|
|
474
|
+
def __int__(self) -> int:
|
|
475
|
+
...
|
|
476
|
+
def __ne__(self, other: typing.Any) -> bool:
|
|
477
|
+
...
|
|
478
|
+
def __repr__(self) -> str:
|
|
479
|
+
...
|
|
480
|
+
def __setstate__(self, state: int) -> None:
|
|
481
|
+
...
|
|
482
|
+
def __str__(self) -> str:
|
|
483
|
+
...
|
|
484
|
+
@property
|
|
485
|
+
def name(self) -> str:
|
|
486
|
+
...
|
|
487
|
+
@property
|
|
488
|
+
def value(self) -> int:
|
|
489
|
+
...
|
|
490
|
+
class LibraryManager:
|
|
491
|
+
"""
|
|
492
|
+
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.
|
|
493
|
+
"""
|
|
494
|
+
@staticmethod
|
|
495
|
+
def get_page_count(file_path: str, password: str) -> int:
|
|
496
|
+
"""
|
|
497
|
+
Returns the number of pages in a document.
|
|
498
|
+
"""
|
|
499
|
+
@staticmethod
|
|
500
|
+
def get_version(version: str) -> None:
|
|
501
|
+
"""
|
|
502
|
+
Gets the version of the SDK library.
|
|
503
|
+
"""
|
|
504
|
+
@staticmethod
|
|
505
|
+
def initialize(resource_path: str) -> None:
|
|
506
|
+
"""
|
|
507
|
+
Initializes the SDK library with the given resource path
|
|
508
|
+
"""
|
|
509
|
+
@staticmethod
|
|
510
|
+
def license_verify(license: str, device_id: str, app_id: str) -> ErrorCode:
|
|
511
|
+
"""
|
|
512
|
+
Verifies the provided license key along with device ID and application ID.
|
|
513
|
+
"""
|
|
514
|
+
@staticmethod
|
|
515
|
+
def release() -> None:
|
|
516
|
+
"""
|
|
517
|
+
Releases all resources used by the library. Should be called when the SDK is no longer needed.
|
|
518
|
+
"""
|
|
519
|
+
@staticmethod
|
|
520
|
+
def set_document_ai_model(file_path: str, language: OCRLanguage) -> ErrorCode:
|
|
521
|
+
"""
|
|
522
|
+
Sets the Document AI model for OCR based on the provided file path and language.
|
|
523
|
+
"""
|
|
524
|
+
@staticmethod
|
|
525
|
+
def set_logger(enable_info: bool, enable_warning: bool) -> None:
|
|
526
|
+
"""
|
|
527
|
+
Enables or disables logging for info and warning messages.
|
|
528
|
+
"""
|
|
529
|
+
@staticmethod
|
|
530
|
+
def set_ocr_language(language: OCRLanguage) -> None:
|
|
531
|
+
"""
|
|
532
|
+
Sets the OCR language for document processing.
|
|
533
|
+
"""
|
|
534
|
+
@staticmethod
|
|
535
|
+
def set_progress(progress: typing.Callable) -> None:
|
|
536
|
+
"""
|
|
537
|
+
Sets a callback function to track the progress of SDK operations.
|
|
538
|
+
"""
|
|
539
|
+
class OCRLanguage:
|
|
540
|
+
"""
|
|
541
|
+
Members:
|
|
542
|
+
|
|
543
|
+
UNKNOWN : Unknown language
|
|
544
|
+
|
|
545
|
+
CHINESE : Chinese (Simplified)
|
|
546
|
+
|
|
547
|
+
CHINESE_TRA : Chinese (Traditional)
|
|
548
|
+
|
|
549
|
+
ENGLISH : English
|
|
550
|
+
|
|
551
|
+
KOREAN : Korean
|
|
552
|
+
|
|
553
|
+
JAPANESE : Japanese
|
|
554
|
+
|
|
555
|
+
LATIN : Latin
|
|
556
|
+
|
|
557
|
+
DEVANAGARI : Devanagari
|
|
558
|
+
|
|
559
|
+
AUTO : Automatically select language
|
|
560
|
+
"""
|
|
561
|
+
AUTO: typing.ClassVar[OCRLanguage] # value = <OCRLanguage.AUTO: 8>
|
|
562
|
+
CHINESE: typing.ClassVar[OCRLanguage] # value = <OCRLanguage.CHINESE: 1>
|
|
563
|
+
CHINESE_TRA: typing.ClassVar[OCRLanguage] # value = <OCRLanguage.CHINESE_TRA: 2>
|
|
564
|
+
DEVANAGARI: typing.ClassVar[OCRLanguage] # value = <OCRLanguage.DEVANAGARI: 7>
|
|
565
|
+
ENGLISH: typing.ClassVar[OCRLanguage] # value = <OCRLanguage.ENGLISH: 3>
|
|
566
|
+
JAPANESE: typing.ClassVar[OCRLanguage] # value = <OCRLanguage.JAPANESE: 5>
|
|
567
|
+
KOREAN: typing.ClassVar[OCRLanguage] # value = <OCRLanguage.KOREAN: 4>
|
|
568
|
+
LATIN: typing.ClassVar[OCRLanguage] # value = <OCRLanguage.LATIN: 6>
|
|
569
|
+
UNKNOWN: typing.ClassVar[OCRLanguage] # value = <OCRLanguage.UNKNOWN: 0>
|
|
570
|
+
__members__: typing.ClassVar[dict[str, OCRLanguage]] # value = {'UNKNOWN': <OCRLanguage.UNKNOWN: 0>, 'CHINESE': <OCRLanguage.CHINESE: 1>, 'CHINESE_TRA': <OCRLanguage.CHINESE_TRA: 2>, 'ENGLISH': <OCRLanguage.ENGLISH: 3>, 'KOREAN': <OCRLanguage.KOREAN: 4>, 'JAPANESE': <OCRLanguage.JAPANESE: 5>, 'LATIN': <OCRLanguage.LATIN: 6>, 'DEVANAGARI': <OCRLanguage.DEVANAGARI: 7>, 'AUTO': <OCRLanguage.AUTO: 8>}
|
|
571
|
+
def __eq__(self, other: typing.Any) -> bool:
|
|
572
|
+
...
|
|
573
|
+
def __getstate__(self) -> int:
|
|
574
|
+
...
|
|
575
|
+
def __hash__(self) -> int:
|
|
576
|
+
...
|
|
577
|
+
def __index__(self) -> int:
|
|
578
|
+
...
|
|
579
|
+
def __init__(self, value: int) -> None:
|
|
580
|
+
...
|
|
581
|
+
def __int__(self) -> int:
|
|
582
|
+
...
|
|
583
|
+
def __ne__(self, other: typing.Any) -> bool:
|
|
584
|
+
...
|
|
585
|
+
def __repr__(self) -> str:
|
|
586
|
+
...
|
|
587
|
+
def __setstate__(self, state: int) -> None:
|
|
588
|
+
...
|
|
589
|
+
def __str__(self) -> str:
|
|
590
|
+
...
|
|
591
|
+
@property
|
|
592
|
+
def name(self) -> str:
|
|
593
|
+
...
|
|
594
|
+
@property
|
|
595
|
+
def value(self) -> int:
|
|
596
|
+
...
|
|
597
|
+
class PageLayoutMode:
|
|
598
|
+
"""
|
|
599
|
+
Members:
|
|
600
|
+
|
|
601
|
+
BOX : Box mode
|
|
602
|
+
|
|
603
|
+
FLOW : Flowing mode
|
|
604
|
+
"""
|
|
605
|
+
BOX: typing.ClassVar[PageLayoutMode] # value = <PageLayoutMode.BOX: 0>
|
|
606
|
+
FLOW: typing.ClassVar[PageLayoutMode] # value = <PageLayoutMode.FLOW: 1>
|
|
607
|
+
__members__: typing.ClassVar[dict[str, PageLayoutMode]] # value = {'BOX': <PageLayoutMode.BOX: 0>, 'FLOW': <PageLayoutMode.FLOW: 1>}
|
|
608
|
+
def __eq__(self, other: typing.Any) -> bool:
|
|
609
|
+
...
|
|
610
|
+
def __getstate__(self) -> int:
|
|
611
|
+
...
|
|
612
|
+
def __hash__(self) -> int:
|
|
613
|
+
...
|
|
614
|
+
def __index__(self) -> int:
|
|
615
|
+
...
|
|
616
|
+
def __init__(self, value: int) -> None:
|
|
617
|
+
...
|
|
618
|
+
def __int__(self) -> int:
|
|
619
|
+
...
|
|
620
|
+
def __ne__(self, other: typing.Any) -> bool:
|
|
621
|
+
...
|
|
622
|
+
def __repr__(self) -> str:
|
|
623
|
+
...
|
|
624
|
+
def __setstate__(self, state: int) -> None:
|
|
625
|
+
...
|
|
626
|
+
def __str__(self) -> str:
|
|
627
|
+
...
|
|
628
|
+
@property
|
|
629
|
+
def name(self) -> str:
|
|
630
|
+
...
|
|
631
|
+
@property
|
|
632
|
+
def value(self) -> int:
|
|
633
|
+
...
|
|
634
|
+
AUTO: OCRLanguage # value = <OCRLanguage.AUTO: 8>
|
|
635
|
+
BINARY: ImageColorMode # value = <ImageColorMode.BINARY: 2>
|
|
636
|
+
BMP: ImageType # value = <ImageType.BMP: 3>
|
|
637
|
+
BOX: PageLayoutMode # value = <PageLayoutMode.BOX: 0>
|
|
638
|
+
CANCEL: ErrorCode # value = <ErrorCode.CANCEL: 1>
|
|
639
|
+
CHINESE: OCRLanguage # value = <OCRLanguage.CHINESE: 1>
|
|
640
|
+
CHINESE_TRA: OCRLanguage # value = <OCRLanguage.CHINESE_TRA: 2>
|
|
641
|
+
COLOR: ImageColorMode # value = <ImageColorMode.COLOR: 0>
|
|
642
|
+
COMPRESS_ERROR: ErrorCode # value = <ErrorCode.COMPRESS_ERROR: 9>
|
|
643
|
+
CONVERTING_ERROR: ErrorCode # value = <ErrorCode.CONVERTING_ERROR: 60>
|
|
644
|
+
DEVANAGARI: OCRLanguage # value = <OCRLanguage.DEVANAGARI: 7>
|
|
645
|
+
ENGLISH: OCRLanguage # value = <OCRLanguage.ENGLISH: 3>
|
|
646
|
+
FILE_ERROR: ErrorCode # value = <ErrorCode.FILE_ERROR: 2>
|
|
647
|
+
FLOW: PageLayoutMode # value = <PageLayoutMode.FLOW: 1>
|
|
648
|
+
FOR_DOCUMENT: ExcelWorksheetOption # value = <ExcelWorksheetOption.FOR_DOCUMENT: 2>
|
|
649
|
+
FOR_PAGE: ExcelWorksheetOption # value = <ExcelWorksheetOption.FOR_PAGE: 1>
|
|
650
|
+
FOR_TABLE: ExcelWorksheetOption # value = <ExcelWorksheetOption.FOR_TABLE: 0>
|
|
651
|
+
GRAY: ImageColorMode # value = <ImageColorMode.GRAY: 1>
|
|
652
|
+
IO_ERROR: ErrorCode # value = <ErrorCode.IO_ERROR: 8>
|
|
653
|
+
JAPANESE: OCRLanguage # value = <OCRLanguage.JAPANESE: 5>
|
|
654
|
+
JPEG: ImageType # value = <ImageType.JPEG: 1>
|
|
655
|
+
JPG: ImageType # value = <ImageType.JPG: 0>
|
|
656
|
+
KOREAN: OCRLanguage # value = <OCRLanguage.KOREAN: 4>
|
|
657
|
+
LATIN: OCRLanguage # value = <OCRLanguage.LATIN: 6>
|
|
658
|
+
LICENSE_EXPIRE: ErrorCode # value = <ErrorCode.LICENSE_EXPIRE: 21>
|
|
659
|
+
LICENSE_FILE_READ_FAILED: ErrorCode # value = <ErrorCode.LICENSE_FILE_READ_FAILED: 28>
|
|
660
|
+
LICENSE_ILLEGAL_ACCESS: ErrorCode # value = <ErrorCode.LICENSE_ILLEGAL_ACCESS: 27>
|
|
661
|
+
LICENSE_INVALID: ErrorCode # value = <ErrorCode.LICENSE_INVALID: 20>
|
|
662
|
+
LICENSE_OCR_PERMISSION_DENY: ErrorCode # value = <ErrorCode.LICENSE_OCR_PERMISSION_DENY: 29>
|
|
663
|
+
LICENSE_PERMISSION_DENY: ErrorCode # value = <ErrorCode.LICENSE_PERMISSION_DENY: 25>
|
|
664
|
+
LICENSE_UNINITIALIZED: ErrorCode # value = <ErrorCode.LICENSE_UNINITIALIZED: 26>
|
|
665
|
+
LICENSE_UNSUPPORTED_DEVICE: ErrorCode # value = <ErrorCode.LICENSE_UNSUPPORTED_DEVICE: 24>
|
|
666
|
+
LICENSE_UNSUPPORTED_ID: ErrorCode # value = <ErrorCode.LICENSE_UNSUPPORTED_ID: 23>
|
|
667
|
+
LICENSE_UNSUPPORTED_PLATFORM: ErrorCode # value = <ErrorCode.LICENSE_UNSUPPORTED_PLATFORM: 22>
|
|
668
|
+
MULTIPLE_PAGE: HtmlOption # value = <HtmlOption.MULTIPLE_PAGE: 2>
|
|
669
|
+
MULTIPLE_PAGE_WITH_BOOKMARK: HtmlOption # value = <HtmlOption.MULTIPLE_PAGE_WITH_BOOKMARK: 3>
|
|
670
|
+
NO_TABLE_ERROR: ErrorCode # value = <ErrorCode.NO_TABLE_ERROR: 40>
|
|
671
|
+
OCR_FAILURE: ErrorCode # value = <ErrorCode.OCR_FAILURE: 41>
|
|
672
|
+
OUT_OF_MEMORY: ErrorCode # value = <ErrorCode.OUT_OF_MEMORY: 7>
|
|
673
|
+
PDF_FORMAT_ERROR: ErrorCode # value = <ErrorCode.PDF_FORMAT_ERROR: 5>
|
|
674
|
+
PDF_PAGE_ERROR: ErrorCode # value = <ErrorCode.PDF_PAGE_ERROR: 4>
|
|
675
|
+
PDF_PASSWORD_ERROR: ErrorCode # value = <ErrorCode.PDF_PASSWORD_ERROR: 3>
|
|
676
|
+
PDF_SECURITY_ERROR: ErrorCode # value = <ErrorCode.PDF_SECURITY_ERROR: 6>
|
|
677
|
+
PNG: ImageType # value = <ImageType.PNG: 2>
|
|
678
|
+
SINGLE_PAGE: HtmlOption # value = <HtmlOption.SINGLE_PAGE: 0>
|
|
679
|
+
SINGLE_PAGE_WITH_BOOKMARK: HtmlOption # value = <HtmlOption.SINGLE_PAGE_WITH_BOOKMARK: 1>
|
|
680
|
+
SUCCESS: ErrorCode # value = <ErrorCode.SUCCESS: 0>
|
|
681
|
+
TIFF: ImageType # value = <ImageType.TIFF: 4>
|
|
682
|
+
UNKNOWN: OCRLanguage # value = <OCRLanguage.UNKNOWN: 0>
|
|
683
|
+
UNKNOWN_ERROR: ErrorCode # value = <ErrorCode.UNKNOWN_ERROR: 100>
|
DocumentAI.dll
ADDED
|
Binary file
|
cpdfconversionsdk.dll
ADDED
|
Binary file
|
fastdeploy.dll
ADDED
|
Binary file
|
onnxruntime.dll
ADDED
|
Binary file
|
|
Binary file
|
opencv_world480.dll
ADDED
|
Binary file
|
paddle2onnx.dll
ADDED
|
Binary file
|
yaml-cpp.dll
ADDED
|
Binary file
|
zlib.dll
ADDED
|
Binary file
|