ComPDFKitConversion 3.9.0__cp313-cp313-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.
Binary file
@@ -0,0 +1,26 @@
1
+ """
2
+ ComPDFKit Conversion Python SDK
3
+
4
+ This package provides Python bindings for the ComPDFKit Conversion SDK,
5
+ enabling conversion of PDF files to various formats including Word, Excel,
6
+ PPT, HTML, images, and more.
7
+ """
8
+
9
+ import os
10
+ import platform
11
+
12
+ # On Windows, add this package's directory to the DLL search path
13
+ # so that cpdfconversionsdk.dll and other dependent DLLs can be found.
14
+ _package_dir = os.path.dirname(os.path.abspath(__file__))
15
+
16
+ if platform.system() == "Windows":
17
+ # Python 3.8+ requires explicit DLL directory registration
18
+ if hasattr(os, "add_dll_directory"):
19
+ os.add_dll_directory(_package_dir)
20
+ # Also prepend to PATH as a fallback for older Python or subprocess calls
21
+ os.environ["PATH"] = _package_dir + os.pathsep + os.environ.get("PATH", "")
22
+
23
+ # Import everything from the native extension module
24
+ from ComPDFKitConversion._core import * # noqa: F401, F403
25
+ from ComPDFKitConversion._core import __doc__ as _module_doc # noqa: F401
26
+
@@ -0,0 +1,21 @@
1
+ """
2
+
3
+ ComPDFKit Conversion python3 SDK
4
+
5
+ """
6
+ from ComPDFKitConversion._core import *
7
+ from ComPDFKitConversion._core import (
8
+ CPDFConversion as CPDFConversion,
9
+ ConvertCallback as ConvertCallback,
10
+ ConvertOptions as ConvertOptions,
11
+ ErrorCode as ErrorCode,
12
+ ExcelWorksheetOption as ExcelWorksheetOption,
13
+ HtmlOption as HtmlOption,
14
+ ImageColorMode as ImageColorMode,
15
+ ImageType as ImageType,
16
+ LibraryManager as LibraryManager,
17
+ OCRLanguage as OCRLanguage,
18
+ OCROption as OCROption,
19
+ PageLayoutMode as PageLayoutMode,
20
+ )
21
+
@@ -0,0 +1,927 @@
1
+ """
2
+
3
+ ComPDFKit Conversion python3 SDK
4
+
5
+ """
6
+ from __future__ import annotations
7
+ import collections.abc
8
+ import typing
9
+ __all__: list[str] = ['ALL', 'ARABIC', 'AUTO', 'BINARY', 'BMP', 'BOX', 'CANCEL', 'CHINESE', 'CHINESE_TRA', 'COLOR', 'COMPRESS_ERROR', 'CONVERTING_ERROR', 'CPDFConversion', 'CYRILLIC', 'ConvertCallback', 'ConvertOptions', 'DEVANAGARI', 'ENGLISH', 'ESLAV', 'EXPIRE_ERROR', 'ErrorCode', 'ExcelWorksheetOption', 'FILE_ERROR', 'FLOW', 'FOR_DOCUMENT', 'FOR_PAGE', 'FOR_TABLE', 'GIF', 'GRAY', 'GREEK', 'HtmlOption', 'IMAGE_DATA_EMPTY', 'IMAGE_FORMAT_UNSUPPORTED', 'IMAGE_INVALID', 'IMAGE_WIDTH_HEIGHT_ERROR', 'INVALID_ARG', 'INVALID_CHARACTER', 'INVALID_CHARACTER_AND_SCAN_PAGE', 'INVALID_HANDLE', 'INVALID_MODEL_FORMAT', 'INVALID_TABLE', 'IO_ERROR', 'ImageColorMode', 'ImageType', 'JAPANESE', 'JPEG', 'JPEG2000', 'JPG', 'KANNADA', 'KOREAN', 'LATIN', 'LICENSE_EXPIRE', 'LICENSE_FILE_READ_FAILED', 'LICENSE_ILLEGAL_ACCESS', 'LICENSE_INVALID', 'LICENSE_MISMATCH', 'LICENSE_OCR_PERMISSION_DENY', 'LICENSE_PERMISSION_DENY', 'LICENSE_UNINITIALIZED', 'LICENSE_UNSUPPORTED_API', 'LICENSE_UNSUPPORTED_DEVICE', 'LICENSE_UNSUPPORTED_ID', 'LICENSE_UNSUPPORTED_PLATFORM', 'LibraryManager', 'MISSING_ARG', 'MODEL_FORMAT_UNSUPPORTED', 'MODEL_FUNCTION_UNSUPPORTED', 'MODEL_SDK_MISMATCH', 'MULTIPLE_PAGE', 'MULTIPLE_PAGE_WITH_BOOKMARK', 'NO_TABLE_ERROR', 'OCRLanguage', 'OCROption', 'OCR_FAILURE', 'OUT_OF_MEMORY', 'PDF_FORMAT_ERROR', 'PDF_PAGE_ERROR', 'PDF_PASSWORD_ERROR', 'PDF_SECURITY_ERROR', 'PNG', 'PageLayoutMode', 'SCAN_PAGE', 'SINGLE_PAGE', 'SINGLE_PAGE_WITH_BOOKMARK', 'SUCCESS', 'TAMIL', 'TELUGU', 'TGA', 'THAI', 'TIFF', 'UNKNOWN', 'UNKNOWN_ERROR', 'WEBP']
10
+ class CPDFConversion:
11
+ """
12
+
13
+ CPDFConversion class provides functionalities to convert PDF files into various formats such as Word, Excel, PPT, HTML, etc.
14
+ """
15
+ @staticmethod
16
+ def cancel() -> None:
17
+ """
18
+ Cancels any ongoing PDF conversion process.
19
+ """
20
+ @staticmethod
21
+ def start_pdf_to_excel(file_path: str, password: str, output_path: str, options: ConvertOptions, callback: ConvertCallback = None) -> ErrorCode:
22
+ """
23
+ Starts the conversion of a PDF file to an Excel document.
24
+ """
25
+ @staticmethod
26
+ def start_pdf_to_html(file_path: str, password: str, output_path: str, options: ConvertOptions, callback: ConvertCallback = None) -> ErrorCode:
27
+ """
28
+ Starts the conversion of a PDF file to an HTML document.
29
+ """
30
+ @staticmethod
31
+ def start_pdf_to_image(file_path: str, password: str, output_path: str, options: ConvertOptions, callback: ConvertCallback = None) -> ErrorCode:
32
+ """
33
+ Starts the conversion of a PDF file to an image format.
34
+ """
35
+ @staticmethod
36
+ def start_pdf_to_json(file_path: str, password: str, output_path: str, options: ConvertOptions, callback: ConvertCallback = None) -> ErrorCode:
37
+ """
38
+ Starts the conversion of a PDF file to a JSON document.
39
+ """
40
+ @staticmethod
41
+ def start_pdf_to_markdown(file_path: str, password: str, output_path: str, options: ConvertOptions, callback: ConvertCallback = None) -> ErrorCode:
42
+ """
43
+ Starts the conversion of a PDF file to a Markdown document.
44
+ """
45
+ @staticmethod
46
+ def start_pdf_to_ofd(file_path: str, password: str, output_path: str, options: ConvertOptions, callback: ConvertCallback = None) -> ErrorCode:
47
+ """
48
+ Starts the conversion of a PDF file to an OFD document.
49
+ """
50
+ @staticmethod
51
+ def start_pdf_to_ppt(file_path: str, password: str, output_path: str, options: ConvertOptions, callback: ConvertCallback = None) -> ErrorCode:
52
+ """
53
+ Starts the conversion of a PDF file to a PowerPoint presentation.
54
+ """
55
+ @staticmethod
56
+ def start_pdf_to_rtf(file_path: str, password: str, output_path: str, options: ConvertOptions, callback: ConvertCallback = None) -> ErrorCode:
57
+ """
58
+ Starts the conversion of a PDF file to an RTF document.
59
+ """
60
+ @staticmethod
61
+ def start_pdf_to_searchable_pdf(file_path: str, password: str, output_path: str, options: ConvertOptions, callback: ConvertCallback = None) -> ErrorCode:
62
+ """
63
+ Starts the conversion of a PDF file to a searchable PDF document.
64
+ """
65
+ @staticmethod
66
+ def start_pdf_to_txt(file_path: str, password: str, output_path: str, options: ConvertOptions, callback: ConvertCallback = None) -> ErrorCode:
67
+ """
68
+ Starts the conversion of a PDF file to a plain text file.
69
+ """
70
+ @staticmethod
71
+ def start_pdf_to_word(file_path: str, password: str, output_path: str, options: ConvertOptions, callback: ConvertCallback = None) -> ErrorCode:
72
+ """
73
+ Starts the conversion of a PDF file to a Word document.
74
+ """
75
+ class ConvertCallback:
76
+ """
77
+ Callback bundle for conversion progress and cancellation. Each instance maintains its own callback state.
78
+ """
79
+ def __init__(self) -> None:
80
+ """
81
+ Default constructor
82
+ """
83
+ def reset(self) -> None:
84
+ """
85
+ Resets all callbacks to None.
86
+ """
87
+ def set_cancel(self, cancel: collections.abc.Callable[[], bool]) -> None:
88
+ """
89
+ Sets a callback function for cancellation check. Return True to cancel the conversion.
90
+ """
91
+ def set_progress(self, progress: collections.abc.Callable[[typing.SupportsInt | typing.SupportsIndex, typing.SupportsInt | typing.SupportsIndex], None]) -> None:
92
+ """
93
+ Sets a callback function to track the progress of conversion. The callback receives (current_page, total_page).
94
+ """
95
+ class ConvertOptions:
96
+ def __init__(self) -> None:
97
+ """
98
+ Default constructor
99
+ """
100
+ def __repr__(self) -> str:
101
+ """
102
+ String representation of ConvertOptions object
103
+ """
104
+ def __str__(self) -> str:
105
+ """
106
+ String representation of ConvertOptions object
107
+ """
108
+ @property
109
+ def auto_create_folder(self) -> bool:
110
+ """
111
+ Whether to automatically create folder when exporting multiple documents
112
+ """
113
+ @auto_create_folder.setter
114
+ def auto_create_folder(self, arg0: bool) -> None:
115
+ ...
116
+ @property
117
+ def contain_annotation(self) -> bool:
118
+ """
119
+ Whether to contain annotations when converting
120
+ """
121
+ @contain_annotation.setter
122
+ def contain_annotation(self, arg0: bool) -> None:
123
+ ...
124
+ @property
125
+ def contain_image(self) -> bool:
126
+ """
127
+ Whether to contain images when converting, which takes effect only when enable_ocr is false
128
+ """
129
+ @contain_image.setter
130
+ def contain_image(self, arg0: bool) -> None:
131
+ ...
132
+ @property
133
+ def contain_page_background_image(self) -> bool:
134
+ """
135
+ Whether to contain page background images when converting,which takes effect only when enable_ocr is true.
136
+ """
137
+ @contain_page_background_image.setter
138
+ def contain_page_background_image(self, arg0: bool) -> None:
139
+ ...
140
+ @property
141
+ def enable_ai_layout(self) -> bool:
142
+ """
143
+ Whether to enable AI layout analysis during conversion
144
+ """
145
+ @enable_ai_layout.setter
146
+ def enable_ai_layout(self, arg0: bool) -> None:
147
+ ...
148
+ @property
149
+ def enable_ocr(self) -> bool:
150
+ """
151
+ Whether to use OCR
152
+ """
153
+ @enable_ocr.setter
154
+ def enable_ocr(self, arg0: bool) -> None:
155
+ ...
156
+ @property
157
+ def excel_all_content(self) -> bool:
158
+ """
159
+ Whether to set contain all pdf content to the xlsx file
160
+ """
161
+ @excel_all_content.setter
162
+ def excel_all_content(self, arg0: bool) -> None:
163
+ ...
164
+ @property
165
+ def excel_csv_format(self) -> bool:
166
+ """
167
+ Whether to set to save the table in csv format
168
+ """
169
+ @excel_csv_format.setter
170
+ def excel_csv_format(self, arg0: bool) -> None:
171
+ ...
172
+ @property
173
+ def excel_worksheet_option(self) -> ExcelWorksheetOption:
174
+ """
175
+ Specify the Excel worksheet option for conversion
176
+ """
177
+ @excel_worksheet_option.setter
178
+ def excel_worksheet_option(self, arg0: ExcelWorksheetOption) -> None:
179
+ ...
180
+ @property
181
+ def font_name(self) -> str:
182
+ """
183
+ Specify the fontname to convert, e.g. "Arial"
184
+ """
185
+ @font_name.setter
186
+ def font_name(self, arg0: str) -> None:
187
+ ...
188
+ @property
189
+ def formula_to_image(self) -> bool:
190
+ """
191
+ Whether to convert formula to image
192
+ """
193
+ @formula_to_image.setter
194
+ def formula_to_image(self, arg0: bool) -> None:
195
+ ...
196
+ @property
197
+ def html_option(self) -> HtmlOption:
198
+ """
199
+ Specify the HTML option for conversion
200
+ """
201
+ @html_option.setter
202
+ def html_option(self, arg0: HtmlOption) -> None:
203
+ ...
204
+ @property
205
+ def image_color_mode(self) -> ImageColorMode:
206
+ """
207
+ Specify the image color mode of the image file
208
+ """
209
+ @image_color_mode.setter
210
+ def image_color_mode(self, arg0: ImageColorMode) -> None:
211
+ ...
212
+ @property
213
+ def image_path_enhance(self) -> bool:
214
+ """
215
+ Whether to enhance the image path
216
+ """
217
+ @image_path_enhance.setter
218
+ def image_path_enhance(self, arg0: bool) -> None:
219
+ ...
220
+ @property
221
+ def image_scaling(self) -> float:
222
+ """
223
+ Specify the image scaling of the image file
224
+ """
225
+ @image_scaling.setter
226
+ def image_scaling(self, arg0: typing.SupportsFloat | typing.SupportsIndex) -> None:
227
+ ...
228
+ @property
229
+ def image_type(self) -> ImageType:
230
+ """
231
+ Specify the image type of the image file
232
+ """
233
+ @image_type.setter
234
+ def image_type(self, arg0: ImageType) -> None:
235
+ ...
236
+ @property
237
+ def json_contain_table(self) -> bool:
238
+ """
239
+ Whether to contain table when convert pdf to json
240
+ """
241
+ @json_contain_table.setter
242
+ def json_contain_table(self, arg0: bool) -> None:
243
+ ...
244
+ @property
245
+ def ocr_option(self) -> OCROption:
246
+ """
247
+ Specify the OCR option
248
+ """
249
+ @ocr_option.setter
250
+ def ocr_option(self, arg0: OCROption) -> None:
251
+ ...
252
+ @property
253
+ def output_document_per_page(self) -> bool:
254
+ """
255
+ whether to output one document per page
256
+ """
257
+ @output_document_per_page.setter
258
+ def output_document_per_page(self, arg0: bool) -> None:
259
+ ...
260
+ @property
261
+ def page_layout_mode(self) -> PageLayoutMode:
262
+ """
263
+ Specify the layout mode
264
+ """
265
+ @page_layout_mode.setter
266
+ def page_layout_mode(self, arg0: PageLayoutMode) -> None:
267
+ ...
268
+ @property
269
+ def page_ranges(self) -> str:
270
+ """
271
+ Specify the pages to convert, e.g. "1-3,5,7-9"
272
+ """
273
+ @page_ranges.setter
274
+ def page_ranges(self, arg0: str) -> None:
275
+ ...
276
+ @property
277
+ def transparent_text(self) -> bool:
278
+ """
279
+ Whether to make the text transparent in the output document
280
+ """
281
+ @transparent_text.setter
282
+ def transparent_text(self, arg0: bool) -> None:
283
+ ...
284
+ @property
285
+ def txt_table_format(self) -> bool:
286
+ """
287
+ Whether format table when convert pdf to txt
288
+ """
289
+ @txt_table_format.setter
290
+ def txt_table_format(self, arg0: bool) -> None:
291
+ ...
292
+ class ErrorCode:
293
+ """
294
+ Members:
295
+
296
+ SUCCESS : Success, and no error occurs
297
+
298
+ CANCEL : Conversion process was canceled
299
+
300
+ FILE_ERROR : File cannot be found or could not be opened
301
+
302
+ 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
303
+
304
+ PDF_PAGE_ERROR : PDF page failed to load
305
+
306
+ PDF_FORMAT_ERROR : Format is invalid. For files, this may also mean that file is corrupted
307
+
308
+ PDF_SECURITY_ERROR : PDF document is encrypted by some unsupported security handler
309
+
310
+ OUT_OF_MEMORY : Out-of-memory error occurs
311
+
312
+ IO_ERROR : System I/O error
313
+
314
+ COMPRESS_ERROR : Folder compression failed
315
+
316
+ LICENSE_INVALID : The license is invalid
317
+
318
+ LICENSE_EXPIRE : The license has expired
319
+
320
+ LICENSE_UNSUPPORTED_PLATFORM : The license does not support the current platform
321
+
322
+ LICENSE_UNSUPPORTED_ID : The license does not support the application id
323
+
324
+ LICENSE_UNSUPPORTED_DEVICE : The license does not support the device id
325
+
326
+ LICENSE_PERMISSION_DENY : The license does not have the function permission
327
+
328
+ LICENSE_UNINITIALIZED : The license has not been initialized
329
+
330
+ LICENSE_ILLEGAL_ACCESS : Illegal access to the API interface
331
+
332
+ LICENSE_FILE_READ_FAILED : Failed to read license file
333
+
334
+ LICENSE_OCR_PERMISSION_DENY : The license does not have OCR permissions
335
+
336
+ NO_TABLE_ERROR : No tables found in the source file
337
+
338
+ OCR_FAILURE : Failed to call OCR recognition
339
+
340
+ CONVERTING_ERROR : Currently executing conversion task
341
+
342
+ INVALID_ARG : Invalid argument provided
343
+
344
+ INVALID_HANDLE : The handle is invalid, possibly uninitialized or already released
345
+
346
+ INVALID_MODEL_FORMAT : The model file format is invalid or corrupted
347
+
348
+ MODEL_FUNCTION_UNSUPPORTED : The model does not support the requested function or operation
349
+
350
+ MODEL_FORMAT_UNSUPPORTED : The model format is not supported by this system or SDK
351
+
352
+ MODEL_SDK_MISMATCH : The model is incompatible with the current SDK version
353
+
354
+ IMAGE_DATA_EMPTY : The image data is empty or not provided
355
+
356
+ IMAGE_WIDTH_HEIGHT_ERROR : The image width or height is invalid (e.g., less than or equal to zero)
357
+
358
+ IMAGE_FORMAT_UNSUPPORTED : The image format is not supported (e.g., not RGB, YUV, etc.)
359
+
360
+ IMAGE_INVALID : The image is invalid or corrupted
361
+
362
+ EXPIRE_ERROR : The resource (e.g., license, token) has expired
363
+
364
+ MISSING_ARG : A required argument is missing
365
+
366
+ LICENSE_UNSUPPORTED_API : The current license does not support calling this API
367
+
368
+ LICENSE_MISMATCH : The license does not match the device, module, or version
369
+
370
+ INVALID_TABLE : The table data is invalid or null
371
+
372
+ UNKNOWN_ERROR : Unknown error
373
+ """
374
+ CANCEL: typing.ClassVar[ErrorCode] # value = <ErrorCode.CANCEL: 1>
375
+ COMPRESS_ERROR: typing.ClassVar[ErrorCode] # value = <ErrorCode.COMPRESS_ERROR: 9>
376
+ CONVERTING_ERROR: typing.ClassVar[ErrorCode] # value = <ErrorCode.CONVERTING_ERROR: 60>
377
+ EXPIRE_ERROR: typing.ClassVar[ErrorCode] # value = <ErrorCode.EXPIRE_ERROR: 90>
378
+ FILE_ERROR: typing.ClassVar[ErrorCode] # value = <ErrorCode.FILE_ERROR: 2>
379
+ IMAGE_DATA_EMPTY: typing.ClassVar[ErrorCode] # value = <ErrorCode.IMAGE_DATA_EMPTY: 86>
380
+ IMAGE_FORMAT_UNSUPPORTED: typing.ClassVar[ErrorCode] # value = <ErrorCode.IMAGE_FORMAT_UNSUPPORTED: 88>
381
+ IMAGE_INVALID: typing.ClassVar[ErrorCode] # value = <ErrorCode.IMAGE_INVALID: 89>
382
+ IMAGE_WIDTH_HEIGHT_ERROR: typing.ClassVar[ErrorCode] # value = <ErrorCode.IMAGE_WIDTH_HEIGHT_ERROR: 87>
383
+ INVALID_ARG: typing.ClassVar[ErrorCode] # value = <ErrorCode.INVALID_ARG: 80>
384
+ INVALID_HANDLE: typing.ClassVar[ErrorCode] # value = <ErrorCode.INVALID_HANDLE: 81>
385
+ INVALID_MODEL_FORMAT: typing.ClassVar[ErrorCode] # value = <ErrorCode.INVALID_MODEL_FORMAT: 82>
386
+ INVALID_TABLE: typing.ClassVar[ErrorCode] # value = <ErrorCode.INVALID_TABLE: 94>
387
+ IO_ERROR: typing.ClassVar[ErrorCode] # value = <ErrorCode.IO_ERROR: 8>
388
+ LICENSE_EXPIRE: typing.ClassVar[ErrorCode] # value = <ErrorCode.LICENSE_EXPIRE: 21>
389
+ LICENSE_FILE_READ_FAILED: typing.ClassVar[ErrorCode] # value = <ErrorCode.LICENSE_FILE_READ_FAILED: 28>
390
+ LICENSE_ILLEGAL_ACCESS: typing.ClassVar[ErrorCode] # value = <ErrorCode.LICENSE_ILLEGAL_ACCESS: 27>
391
+ LICENSE_INVALID: typing.ClassVar[ErrorCode] # value = <ErrorCode.LICENSE_INVALID: 20>
392
+ LICENSE_MISMATCH: typing.ClassVar[ErrorCode] # value = <ErrorCode.LICENSE_MISMATCH: 93>
393
+ LICENSE_OCR_PERMISSION_DENY: typing.ClassVar[ErrorCode] # value = <ErrorCode.LICENSE_OCR_PERMISSION_DENY: 29>
394
+ LICENSE_PERMISSION_DENY: typing.ClassVar[ErrorCode] # value = <ErrorCode.LICENSE_PERMISSION_DENY: 25>
395
+ LICENSE_UNINITIALIZED: typing.ClassVar[ErrorCode] # value = <ErrorCode.LICENSE_UNINITIALIZED: 26>
396
+ LICENSE_UNSUPPORTED_API: typing.ClassVar[ErrorCode] # value = <ErrorCode.LICENSE_UNSUPPORTED_API: 92>
397
+ LICENSE_UNSUPPORTED_DEVICE: typing.ClassVar[ErrorCode] # value = <ErrorCode.LICENSE_UNSUPPORTED_DEVICE: 24>
398
+ LICENSE_UNSUPPORTED_ID: typing.ClassVar[ErrorCode] # value = <ErrorCode.LICENSE_UNSUPPORTED_ID: 23>
399
+ LICENSE_UNSUPPORTED_PLATFORM: typing.ClassVar[ErrorCode] # value = <ErrorCode.LICENSE_UNSUPPORTED_PLATFORM: 22>
400
+ MISSING_ARG: typing.ClassVar[ErrorCode] # value = <ErrorCode.MISSING_ARG: 91>
401
+ MODEL_FORMAT_UNSUPPORTED: typing.ClassVar[ErrorCode] # value = <ErrorCode.MODEL_FORMAT_UNSUPPORTED: 84>
402
+ MODEL_FUNCTION_UNSUPPORTED: typing.ClassVar[ErrorCode] # value = <ErrorCode.MODEL_FUNCTION_UNSUPPORTED: 83>
403
+ MODEL_SDK_MISMATCH: typing.ClassVar[ErrorCode] # value = <ErrorCode.MODEL_SDK_MISMATCH: 85>
404
+ NO_TABLE_ERROR: typing.ClassVar[ErrorCode] # value = <ErrorCode.NO_TABLE_ERROR: 40>
405
+ OCR_FAILURE: typing.ClassVar[ErrorCode] # value = <ErrorCode.OCR_FAILURE: 41>
406
+ OUT_OF_MEMORY: typing.ClassVar[ErrorCode] # value = <ErrorCode.OUT_OF_MEMORY: 7>
407
+ PDF_FORMAT_ERROR: typing.ClassVar[ErrorCode] # value = <ErrorCode.PDF_FORMAT_ERROR: 5>
408
+ PDF_PAGE_ERROR: typing.ClassVar[ErrorCode] # value = <ErrorCode.PDF_PAGE_ERROR: 4>
409
+ PDF_PASSWORD_ERROR: typing.ClassVar[ErrorCode] # value = <ErrorCode.PDF_PASSWORD_ERROR: 3>
410
+ PDF_SECURITY_ERROR: typing.ClassVar[ErrorCode] # value = <ErrorCode.PDF_SECURITY_ERROR: 6>
411
+ SUCCESS: typing.ClassVar[ErrorCode] # value = <ErrorCode.SUCCESS: 0>
412
+ UNKNOWN_ERROR: typing.ClassVar[ErrorCode] # value = <ErrorCode.UNKNOWN_ERROR: 100>
413
+ __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>, 'INVALID_ARG': <ErrorCode.INVALID_ARG: 80>, 'INVALID_HANDLE': <ErrorCode.INVALID_HANDLE: 81>, 'INVALID_MODEL_FORMAT': <ErrorCode.INVALID_MODEL_FORMAT: 82>, 'MODEL_FUNCTION_UNSUPPORTED': <ErrorCode.MODEL_FUNCTION_UNSUPPORTED: 83>, 'MODEL_FORMAT_UNSUPPORTED': <ErrorCode.MODEL_FORMAT_UNSUPPORTED: 84>, 'MODEL_SDK_MISMATCH': <ErrorCode.MODEL_SDK_MISMATCH: 85>, 'IMAGE_DATA_EMPTY': <ErrorCode.IMAGE_DATA_EMPTY: 86>, 'IMAGE_WIDTH_HEIGHT_ERROR': <ErrorCode.IMAGE_WIDTH_HEIGHT_ERROR: 87>, 'IMAGE_FORMAT_UNSUPPORTED': <ErrorCode.IMAGE_FORMAT_UNSUPPORTED: 88>, 'IMAGE_INVALID': <ErrorCode.IMAGE_INVALID: 89>, 'EXPIRE_ERROR': <ErrorCode.EXPIRE_ERROR: 90>, 'MISSING_ARG': <ErrorCode.MISSING_ARG: 91>, 'LICENSE_UNSUPPORTED_API': <ErrorCode.LICENSE_UNSUPPORTED_API: 92>, 'LICENSE_MISMATCH': <ErrorCode.LICENSE_MISMATCH: 93>, 'INVALID_TABLE': <ErrorCode.INVALID_TABLE: 94>, 'UNKNOWN_ERROR': <ErrorCode.UNKNOWN_ERROR: 100>}
414
+ def __eq__(self, other: typing.Any) -> bool:
415
+ ...
416
+ def __getstate__(self) -> int:
417
+ ...
418
+ def __hash__(self) -> int:
419
+ ...
420
+ def __index__(self) -> int:
421
+ ...
422
+ def __init__(self, value: typing.SupportsInt | typing.SupportsIndex) -> None:
423
+ ...
424
+ def __int__(self) -> int:
425
+ ...
426
+ def __ne__(self, other: typing.Any) -> bool:
427
+ ...
428
+ def __repr__(self) -> str:
429
+ ...
430
+ def __setstate__(self, state: typing.SupportsInt | typing.SupportsIndex) -> None:
431
+ ...
432
+ def __str__(self) -> str:
433
+ ...
434
+ @property
435
+ def name(self) -> str:
436
+ ...
437
+ @property
438
+ def value(self) -> int:
439
+ ...
440
+ class ExcelWorksheetOption:
441
+ """
442
+ Members:
443
+
444
+ FOR_TABLE : A worksheet to contain only one table
445
+
446
+ FOR_PAGE : A worksheet to contain table for PDF Page
447
+
448
+ FOR_DOCUMENT : A worksheet to contain table for PDF Document
449
+ """
450
+ FOR_DOCUMENT: typing.ClassVar[ExcelWorksheetOption] # value = <ExcelWorksheetOption.FOR_DOCUMENT: 2>
451
+ FOR_PAGE: typing.ClassVar[ExcelWorksheetOption] # value = <ExcelWorksheetOption.FOR_PAGE: 1>
452
+ FOR_TABLE: typing.ClassVar[ExcelWorksheetOption] # value = <ExcelWorksheetOption.FOR_TABLE: 0>
453
+ __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>}
454
+ def __eq__(self, other: typing.Any) -> bool:
455
+ ...
456
+ def __getstate__(self) -> int:
457
+ ...
458
+ def __hash__(self) -> int:
459
+ ...
460
+ def __index__(self) -> int:
461
+ ...
462
+ def __init__(self, value: typing.SupportsInt | typing.SupportsIndex) -> None:
463
+ ...
464
+ def __int__(self) -> int:
465
+ ...
466
+ def __ne__(self, other: typing.Any) -> bool:
467
+ ...
468
+ def __repr__(self) -> str:
469
+ ...
470
+ def __setstate__(self, state: typing.SupportsInt | typing.SupportsIndex) -> None:
471
+ ...
472
+ def __str__(self) -> str:
473
+ ...
474
+ @property
475
+ def name(self) -> str:
476
+ ...
477
+ @property
478
+ def value(self) -> int:
479
+ ...
480
+ class HtmlOption:
481
+ """
482
+ Members:
483
+
484
+ SINGLE_PAGE : Convert the entire PDF file into a single HTML file
485
+
486
+ 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
487
+
488
+ MULTIPLE_PAGE : Convert the PDF file into multiple HTML files
489
+
490
+ 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
491
+ """
492
+ MULTIPLE_PAGE: typing.ClassVar[HtmlOption] # value = <HtmlOption.MULTIPLE_PAGE: 2>
493
+ MULTIPLE_PAGE_WITH_BOOKMARK: typing.ClassVar[HtmlOption] # value = <HtmlOption.MULTIPLE_PAGE_WITH_BOOKMARK: 3>
494
+ SINGLE_PAGE: typing.ClassVar[HtmlOption] # value = <HtmlOption.SINGLE_PAGE: 0>
495
+ SINGLE_PAGE_WITH_BOOKMARK: typing.ClassVar[HtmlOption] # value = <HtmlOption.SINGLE_PAGE_WITH_BOOKMARK: 1>
496
+ __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>}
497
+ def __eq__(self, other: typing.Any) -> bool:
498
+ ...
499
+ def __getstate__(self) -> int:
500
+ ...
501
+ def __hash__(self) -> int:
502
+ ...
503
+ def __index__(self) -> int:
504
+ ...
505
+ def __init__(self, value: typing.SupportsInt | typing.SupportsIndex) -> None:
506
+ ...
507
+ def __int__(self) -> int:
508
+ ...
509
+ def __ne__(self, other: typing.Any) -> bool:
510
+ ...
511
+ def __repr__(self) -> str:
512
+ ...
513
+ def __setstate__(self, state: typing.SupportsInt | typing.SupportsIndex) -> None:
514
+ ...
515
+ def __str__(self) -> str:
516
+ ...
517
+ @property
518
+ def name(self) -> str:
519
+ ...
520
+ @property
521
+ def value(self) -> int:
522
+ ...
523
+ class ImageColorMode:
524
+ """
525
+ Members:
526
+
527
+ COLOR : Color mode
528
+
529
+ GRAY : Gray mode
530
+
531
+ BINARY : Binary mode
532
+ """
533
+ BINARY: typing.ClassVar[ImageColorMode] # value = <ImageColorMode.BINARY: 2>
534
+ COLOR: typing.ClassVar[ImageColorMode] # value = <ImageColorMode.COLOR: 0>
535
+ GRAY: typing.ClassVar[ImageColorMode] # value = <ImageColorMode.GRAY: 1>
536
+ __members__: typing.ClassVar[dict[str, ImageColorMode]] # value = {'COLOR': <ImageColorMode.COLOR: 0>, 'GRAY': <ImageColorMode.GRAY: 1>, 'BINARY': <ImageColorMode.BINARY: 2>}
537
+ def __eq__(self, other: typing.Any) -> bool:
538
+ ...
539
+ def __getstate__(self) -> int:
540
+ ...
541
+ def __hash__(self) -> int:
542
+ ...
543
+ def __index__(self) -> int:
544
+ ...
545
+ def __init__(self, value: typing.SupportsInt | typing.SupportsIndex) -> None:
546
+ ...
547
+ def __int__(self) -> int:
548
+ ...
549
+ def __ne__(self, other: typing.Any) -> bool:
550
+ ...
551
+ def __repr__(self) -> str:
552
+ ...
553
+ def __setstate__(self, state: typing.SupportsInt | typing.SupportsIndex) -> None:
554
+ ...
555
+ def __str__(self) -> str:
556
+ ...
557
+ @property
558
+ def name(self) -> str:
559
+ ...
560
+ @property
561
+ def value(self) -> int:
562
+ ...
563
+ class ImageType:
564
+ """
565
+ Members:
566
+
567
+ JPG : .jpg
568
+
569
+ JPEG : .jpeg
570
+
571
+ JPEG2000 : .jp2
572
+
573
+ PNG : .png
574
+
575
+ BMP : .bmp
576
+
577
+ TIFF : .tiff
578
+
579
+ TGA : .tga
580
+
581
+ GIF : .gif
582
+
583
+ WEBP : .webp
584
+ """
585
+ BMP: typing.ClassVar[ImageType] # value = <ImageType.BMP: 4>
586
+ GIF: typing.ClassVar[ImageType] # value = <ImageType.GIF: 7>
587
+ JPEG: typing.ClassVar[ImageType] # value = <ImageType.JPEG: 1>
588
+ JPEG2000: typing.ClassVar[ImageType] # value = <ImageType.JPEG2000: 2>
589
+ JPG: typing.ClassVar[ImageType] # value = <ImageType.JPG: 0>
590
+ PNG: typing.ClassVar[ImageType] # value = <ImageType.PNG: 3>
591
+ TGA: typing.ClassVar[ImageType] # value = <ImageType.TGA: 6>
592
+ TIFF: typing.ClassVar[ImageType] # value = <ImageType.TIFF: 5>
593
+ WEBP: typing.ClassVar[ImageType] # value = <ImageType.WEBP: 8>
594
+ __members__: typing.ClassVar[dict[str, ImageType]] # value = {'JPG': <ImageType.JPG: 0>, 'JPEG': <ImageType.JPEG: 1>, 'JPEG2000': <ImageType.JPEG2000: 2>, 'PNG': <ImageType.PNG: 3>, 'BMP': <ImageType.BMP: 4>, 'TIFF': <ImageType.TIFF: 5>, 'TGA': <ImageType.TGA: 6>, 'GIF': <ImageType.GIF: 7>, 'WEBP': <ImageType.WEBP: 8>}
595
+ def __eq__(self, other: typing.Any) -> bool:
596
+ ...
597
+ def __getstate__(self) -> int:
598
+ ...
599
+ def __hash__(self) -> int:
600
+ ...
601
+ def __index__(self) -> int:
602
+ ...
603
+ def __init__(self, value: typing.SupportsInt | typing.SupportsIndex) -> None:
604
+ ...
605
+ def __int__(self) -> int:
606
+ ...
607
+ def __ne__(self, other: typing.Any) -> bool:
608
+ ...
609
+ def __repr__(self) -> str:
610
+ ...
611
+ def __setstate__(self, state: typing.SupportsInt | typing.SupportsIndex) -> None:
612
+ ...
613
+ def __str__(self) -> str:
614
+ ...
615
+ @property
616
+ def name(self) -> str:
617
+ ...
618
+ @property
619
+ def value(self) -> int:
620
+ ...
621
+ class LibraryManager:
622
+ """
623
+ 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.
624
+ """
625
+ @staticmethod
626
+ def get_page_count(file_path: str, password: str) -> int:
627
+ """
628
+ Returns the number of pages in a document.
629
+ """
630
+ @staticmethod
631
+ def get_version() -> str:
632
+ """
633
+ Gets the version of the SDK library.
634
+ """
635
+ @staticmethod
636
+ def initialize(resource_path: str) -> None:
637
+ """
638
+ Initializes the SDK library with the given resource path
639
+ """
640
+ @staticmethod
641
+ def license_verify(license: str, device_id: str, app_id: str) -> ErrorCode:
642
+ """
643
+ Verifies the provided license key along with device ID and application ID.
644
+ """
645
+ @staticmethod
646
+ def release() -> None:
647
+ """
648
+ Releases all resources used by the library. Should be called when the SDK is no longer needed.
649
+ """
650
+ @staticmethod
651
+ def release_document_ai_model() -> None:
652
+ """
653
+ Release the memory by the AI model.
654
+ """
655
+ @staticmethod
656
+ def set_document_ai_model(file_path: str, language: collections.abc.Sequence[OCRLanguage], gpu_id: typing.SupportsInt | typing.SupportsIndex = -1) -> ErrorCode:
657
+ """
658
+ Sets the Document AI model for OCR based on the provided file path and language. gpu_id: Which GPU for ai model, -1 means disable gpu.
659
+ """
660
+ @staticmethod
661
+ def set_document_ai_model_count(ocr_model_count: typing.SupportsInt | typing.SupportsIndex, layout_model_count: typing.SupportsInt | typing.SupportsIndex, table_model_count: typing.SupportsInt | typing.SupportsIndex) -> None:
662
+ """
663
+ Sets the number of AI models for OCR, layout analysis, and table recognition.
664
+ """
665
+ @staticmethod
666
+ def set_logger(enable_info: bool, enable_warning: bool) -> None:
667
+ """
668
+ Enables or disables logging for info and warning messages.
669
+ """
670
+ @staticmethod
671
+ def set_ocr_language(language: collections.abc.Sequence[OCRLanguage]) -> None:
672
+ """
673
+ Sets the OCR language for document processing.
674
+ """
675
+ @staticmethod
676
+ def set_ocr_result(ocr_result: str) -> None:
677
+ """
678
+ Sets the OCR result for document processing.
679
+ """
680
+ @staticmethod
681
+ def set_progress(progress: collections.abc.Callable) -> None:
682
+ """
683
+ Sets a callback function to track the progress of SDK operations.
684
+ """
685
+ class OCRLanguage:
686
+ """
687
+ Members:
688
+
689
+ UNKNOWN : Unknown language
690
+
691
+ CHINESE : Chinese (Simplified)
692
+
693
+ CHINESE_TRA : Chinese (Traditional)
694
+
695
+ ENGLISH : English
696
+
697
+ KOREAN : Korean
698
+
699
+ JAPANESE : Japanese
700
+
701
+ LATIN : Latin
702
+
703
+ DEVANAGARI : Devanagari
704
+
705
+ CYRILLIC : Cyrillic
706
+
707
+ ARABIC : Arabic
708
+
709
+ TAMIL : Tamil
710
+
711
+ TELUGU : Telugu
712
+
713
+ KANNADA : Kannada
714
+
715
+ THAI : Thai
716
+
717
+ GREEK : Greek
718
+
719
+ ESLAV : Eslav
720
+
721
+ AUTO : Automatically select language
722
+ """
723
+ ARABIC: typing.ClassVar[OCRLanguage] # value = <OCRLanguage.ARABIC: 9>
724
+ AUTO: typing.ClassVar[OCRLanguage] # value = <OCRLanguage.AUTO: 16>
725
+ CHINESE: typing.ClassVar[OCRLanguage] # value = <OCRLanguage.CHINESE: 1>
726
+ CHINESE_TRA: typing.ClassVar[OCRLanguage] # value = <OCRLanguage.CHINESE_TRA: 2>
727
+ CYRILLIC: typing.ClassVar[OCRLanguage] # value = <OCRLanguage.CYRILLIC: 8>
728
+ DEVANAGARI: typing.ClassVar[OCRLanguage] # value = <OCRLanguage.DEVANAGARI: 7>
729
+ ENGLISH: typing.ClassVar[OCRLanguage] # value = <OCRLanguage.ENGLISH: 3>
730
+ ESLAV: typing.ClassVar[OCRLanguage] # value = <OCRLanguage.ESLAV: 15>
731
+ GREEK: typing.ClassVar[OCRLanguage] # value = <OCRLanguage.GREEK: 14>
732
+ JAPANESE: typing.ClassVar[OCRLanguage] # value = <OCRLanguage.JAPANESE: 5>
733
+ KANNADA: typing.ClassVar[OCRLanguage] # value = <OCRLanguage.KANNADA: 12>
734
+ KOREAN: typing.ClassVar[OCRLanguage] # value = <OCRLanguage.KOREAN: 4>
735
+ LATIN: typing.ClassVar[OCRLanguage] # value = <OCRLanguage.LATIN: 6>
736
+ TAMIL: typing.ClassVar[OCRLanguage] # value = <OCRLanguage.TAMIL: 10>
737
+ TELUGU: typing.ClassVar[OCRLanguage] # value = <OCRLanguage.TELUGU: 11>
738
+ THAI: typing.ClassVar[OCRLanguage] # value = <OCRLanguage.THAI: 13>
739
+ UNKNOWN: typing.ClassVar[OCRLanguage] # value = <OCRLanguage.UNKNOWN: 0>
740
+ __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>, 'CYRILLIC': <OCRLanguage.CYRILLIC: 8>, 'ARABIC': <OCRLanguage.ARABIC: 9>, 'TAMIL': <OCRLanguage.TAMIL: 10>, 'TELUGU': <OCRLanguage.TELUGU: 11>, 'KANNADA': <OCRLanguage.KANNADA: 12>, 'THAI': <OCRLanguage.THAI: 13>, 'GREEK': <OCRLanguage.GREEK: 14>, 'ESLAV': <OCRLanguage.ESLAV: 15>, 'AUTO': <OCRLanguage.AUTO: 16>}
741
+ def __eq__(self, other: typing.Any) -> bool:
742
+ ...
743
+ def __getstate__(self) -> int:
744
+ ...
745
+ def __hash__(self) -> int:
746
+ ...
747
+ def __index__(self) -> int:
748
+ ...
749
+ def __init__(self, value: typing.SupportsInt | typing.SupportsIndex) -> None:
750
+ ...
751
+ def __int__(self) -> int:
752
+ ...
753
+ def __ne__(self, other: typing.Any) -> bool:
754
+ ...
755
+ def __repr__(self) -> str:
756
+ ...
757
+ def __setstate__(self, state: typing.SupportsInt | typing.SupportsIndex) -> None:
758
+ ...
759
+ def __str__(self) -> str:
760
+ ...
761
+ @property
762
+ def name(self) -> str:
763
+ ...
764
+ @property
765
+ def value(self) -> int:
766
+ ...
767
+ class OCROption:
768
+ """
769
+ Members:
770
+
771
+ INVALID_CHARACTER : Recognize illegal characters in PDF documents
772
+
773
+ SCAN_PAGE : Recognize scanned pages in PDF documents
774
+
775
+ INVALID_CHARACTER_AND_SCAN_PAGE : Recognize illegal characters and scanned pages in PDF documents
776
+
777
+ ALL : Recognize all characters on all pages
778
+ """
779
+ ALL: typing.ClassVar[OCROption] # value = <OCROption.ALL: 3>
780
+ INVALID_CHARACTER: typing.ClassVar[OCROption] # value = <OCROption.INVALID_CHARACTER: 0>
781
+ INVALID_CHARACTER_AND_SCAN_PAGE: typing.ClassVar[OCROption] # value = <OCROption.INVALID_CHARACTER_AND_SCAN_PAGE: 2>
782
+ SCAN_PAGE: typing.ClassVar[OCROption] # value = <OCROption.SCAN_PAGE: 1>
783
+ __members__: typing.ClassVar[dict[str, OCROption]] # value = {'INVALID_CHARACTER': <OCROption.INVALID_CHARACTER: 0>, 'SCAN_PAGE': <OCROption.SCAN_PAGE: 1>, 'INVALID_CHARACTER_AND_SCAN_PAGE': <OCROption.INVALID_CHARACTER_AND_SCAN_PAGE: 2>, 'ALL': <OCROption.ALL: 3>}
784
+ def __eq__(self, other: typing.Any) -> bool:
785
+ ...
786
+ def __getstate__(self) -> int:
787
+ ...
788
+ def __hash__(self) -> int:
789
+ ...
790
+ def __index__(self) -> int:
791
+ ...
792
+ def __init__(self, value: typing.SupportsInt | typing.SupportsIndex) -> None:
793
+ ...
794
+ def __int__(self) -> int:
795
+ ...
796
+ def __ne__(self, other: typing.Any) -> bool:
797
+ ...
798
+ def __repr__(self) -> str:
799
+ ...
800
+ def __setstate__(self, state: typing.SupportsInt | typing.SupportsIndex) -> None:
801
+ ...
802
+ def __str__(self) -> str:
803
+ ...
804
+ @property
805
+ def name(self) -> str:
806
+ ...
807
+ @property
808
+ def value(self) -> int:
809
+ ...
810
+ class PageLayoutMode:
811
+ """
812
+ Members:
813
+
814
+ BOX : Box mode
815
+
816
+ FLOW : Flowing mode
817
+ """
818
+ BOX: typing.ClassVar[PageLayoutMode] # value = <PageLayoutMode.BOX: 0>
819
+ FLOW: typing.ClassVar[PageLayoutMode] # value = <PageLayoutMode.FLOW: 1>
820
+ __members__: typing.ClassVar[dict[str, PageLayoutMode]] # value = {'BOX': <PageLayoutMode.BOX: 0>, 'FLOW': <PageLayoutMode.FLOW: 1>}
821
+ def __eq__(self, other: typing.Any) -> bool:
822
+ ...
823
+ def __getstate__(self) -> int:
824
+ ...
825
+ def __hash__(self) -> int:
826
+ ...
827
+ def __index__(self) -> int:
828
+ ...
829
+ def __init__(self, value: typing.SupportsInt | typing.SupportsIndex) -> None:
830
+ ...
831
+ def __int__(self) -> int:
832
+ ...
833
+ def __ne__(self, other: typing.Any) -> bool:
834
+ ...
835
+ def __repr__(self) -> str:
836
+ ...
837
+ def __setstate__(self, state: typing.SupportsInt | typing.SupportsIndex) -> None:
838
+ ...
839
+ def __str__(self) -> str:
840
+ ...
841
+ @property
842
+ def name(self) -> str:
843
+ ...
844
+ @property
845
+ def value(self) -> int:
846
+ ...
847
+ ALL: OCROption # value = <OCROption.ALL: 3>
848
+ ARABIC: OCRLanguage # value = <OCRLanguage.ARABIC: 9>
849
+ AUTO: OCRLanguage # value = <OCRLanguage.AUTO: 16>
850
+ BINARY: ImageColorMode # value = <ImageColorMode.BINARY: 2>
851
+ BMP: ImageType # value = <ImageType.BMP: 4>
852
+ BOX: PageLayoutMode # value = <PageLayoutMode.BOX: 0>
853
+ CANCEL: ErrorCode # value = <ErrorCode.CANCEL: 1>
854
+ CHINESE: OCRLanguage # value = <OCRLanguage.CHINESE: 1>
855
+ CHINESE_TRA: OCRLanguage # value = <OCRLanguage.CHINESE_TRA: 2>
856
+ COLOR: ImageColorMode # value = <ImageColorMode.COLOR: 0>
857
+ COMPRESS_ERROR: ErrorCode # value = <ErrorCode.COMPRESS_ERROR: 9>
858
+ CONVERTING_ERROR: ErrorCode # value = <ErrorCode.CONVERTING_ERROR: 60>
859
+ CYRILLIC: OCRLanguage # value = <OCRLanguage.CYRILLIC: 8>
860
+ DEVANAGARI: OCRLanguage # value = <OCRLanguage.DEVANAGARI: 7>
861
+ ENGLISH: OCRLanguage # value = <OCRLanguage.ENGLISH: 3>
862
+ ESLAV: OCRLanguage # value = <OCRLanguage.ESLAV: 15>
863
+ EXPIRE_ERROR: ErrorCode # value = <ErrorCode.EXPIRE_ERROR: 90>
864
+ FILE_ERROR: ErrorCode # value = <ErrorCode.FILE_ERROR: 2>
865
+ FLOW: PageLayoutMode # value = <PageLayoutMode.FLOW: 1>
866
+ FOR_DOCUMENT: ExcelWorksheetOption # value = <ExcelWorksheetOption.FOR_DOCUMENT: 2>
867
+ FOR_PAGE: ExcelWorksheetOption # value = <ExcelWorksheetOption.FOR_PAGE: 1>
868
+ FOR_TABLE: ExcelWorksheetOption # value = <ExcelWorksheetOption.FOR_TABLE: 0>
869
+ GIF: ImageType # value = <ImageType.GIF: 7>
870
+ GRAY: ImageColorMode # value = <ImageColorMode.GRAY: 1>
871
+ GREEK: OCRLanguage # value = <OCRLanguage.GREEK: 14>
872
+ IMAGE_DATA_EMPTY: ErrorCode # value = <ErrorCode.IMAGE_DATA_EMPTY: 86>
873
+ IMAGE_FORMAT_UNSUPPORTED: ErrorCode # value = <ErrorCode.IMAGE_FORMAT_UNSUPPORTED: 88>
874
+ IMAGE_INVALID: ErrorCode # value = <ErrorCode.IMAGE_INVALID: 89>
875
+ IMAGE_WIDTH_HEIGHT_ERROR: ErrorCode # value = <ErrorCode.IMAGE_WIDTH_HEIGHT_ERROR: 87>
876
+ INVALID_ARG: ErrorCode # value = <ErrorCode.INVALID_ARG: 80>
877
+ INVALID_CHARACTER: OCROption # value = <OCROption.INVALID_CHARACTER: 0>
878
+ INVALID_CHARACTER_AND_SCAN_PAGE: OCROption # value = <OCROption.INVALID_CHARACTER_AND_SCAN_PAGE: 2>
879
+ INVALID_HANDLE: ErrorCode # value = <ErrorCode.INVALID_HANDLE: 81>
880
+ INVALID_MODEL_FORMAT: ErrorCode # value = <ErrorCode.INVALID_MODEL_FORMAT: 82>
881
+ INVALID_TABLE: ErrorCode # value = <ErrorCode.INVALID_TABLE: 94>
882
+ IO_ERROR: ErrorCode # value = <ErrorCode.IO_ERROR: 8>
883
+ JAPANESE: OCRLanguage # value = <OCRLanguage.JAPANESE: 5>
884
+ JPEG: ImageType # value = <ImageType.JPEG: 1>
885
+ JPEG2000: ImageType # value = <ImageType.JPEG2000: 2>
886
+ JPG: ImageType # value = <ImageType.JPG: 0>
887
+ KANNADA: OCRLanguage # value = <OCRLanguage.KANNADA: 12>
888
+ KOREAN: OCRLanguage # value = <OCRLanguage.KOREAN: 4>
889
+ LATIN: OCRLanguage # value = <OCRLanguage.LATIN: 6>
890
+ LICENSE_EXPIRE: ErrorCode # value = <ErrorCode.LICENSE_EXPIRE: 21>
891
+ LICENSE_FILE_READ_FAILED: ErrorCode # value = <ErrorCode.LICENSE_FILE_READ_FAILED: 28>
892
+ LICENSE_ILLEGAL_ACCESS: ErrorCode # value = <ErrorCode.LICENSE_ILLEGAL_ACCESS: 27>
893
+ LICENSE_INVALID: ErrorCode # value = <ErrorCode.LICENSE_INVALID: 20>
894
+ LICENSE_MISMATCH: ErrorCode # value = <ErrorCode.LICENSE_MISMATCH: 93>
895
+ LICENSE_OCR_PERMISSION_DENY: ErrorCode # value = <ErrorCode.LICENSE_OCR_PERMISSION_DENY: 29>
896
+ LICENSE_PERMISSION_DENY: ErrorCode # value = <ErrorCode.LICENSE_PERMISSION_DENY: 25>
897
+ LICENSE_UNINITIALIZED: ErrorCode # value = <ErrorCode.LICENSE_UNINITIALIZED: 26>
898
+ LICENSE_UNSUPPORTED_API: ErrorCode # value = <ErrorCode.LICENSE_UNSUPPORTED_API: 92>
899
+ LICENSE_UNSUPPORTED_DEVICE: ErrorCode # value = <ErrorCode.LICENSE_UNSUPPORTED_DEVICE: 24>
900
+ LICENSE_UNSUPPORTED_ID: ErrorCode # value = <ErrorCode.LICENSE_UNSUPPORTED_ID: 23>
901
+ LICENSE_UNSUPPORTED_PLATFORM: ErrorCode # value = <ErrorCode.LICENSE_UNSUPPORTED_PLATFORM: 22>
902
+ MISSING_ARG: ErrorCode # value = <ErrorCode.MISSING_ARG: 91>
903
+ MODEL_FORMAT_UNSUPPORTED: ErrorCode # value = <ErrorCode.MODEL_FORMAT_UNSUPPORTED: 84>
904
+ MODEL_FUNCTION_UNSUPPORTED: ErrorCode # value = <ErrorCode.MODEL_FUNCTION_UNSUPPORTED: 83>
905
+ MODEL_SDK_MISMATCH: ErrorCode # value = <ErrorCode.MODEL_SDK_MISMATCH: 85>
906
+ MULTIPLE_PAGE: HtmlOption # value = <HtmlOption.MULTIPLE_PAGE: 2>
907
+ MULTIPLE_PAGE_WITH_BOOKMARK: HtmlOption # value = <HtmlOption.MULTIPLE_PAGE_WITH_BOOKMARK: 3>
908
+ NO_TABLE_ERROR: ErrorCode # value = <ErrorCode.NO_TABLE_ERROR: 40>
909
+ OCR_FAILURE: ErrorCode # value = <ErrorCode.OCR_FAILURE: 41>
910
+ OUT_OF_MEMORY: ErrorCode # value = <ErrorCode.OUT_OF_MEMORY: 7>
911
+ PDF_FORMAT_ERROR: ErrorCode # value = <ErrorCode.PDF_FORMAT_ERROR: 5>
912
+ PDF_PAGE_ERROR: ErrorCode # value = <ErrorCode.PDF_PAGE_ERROR: 4>
913
+ PDF_PASSWORD_ERROR: ErrorCode # value = <ErrorCode.PDF_PASSWORD_ERROR: 3>
914
+ PDF_SECURITY_ERROR: ErrorCode # value = <ErrorCode.PDF_SECURITY_ERROR: 6>
915
+ PNG: ImageType # value = <ImageType.PNG: 3>
916
+ SCAN_PAGE: OCROption # value = <OCROption.SCAN_PAGE: 1>
917
+ SINGLE_PAGE: HtmlOption # value = <HtmlOption.SINGLE_PAGE: 0>
918
+ SINGLE_PAGE_WITH_BOOKMARK: HtmlOption # value = <HtmlOption.SINGLE_PAGE_WITH_BOOKMARK: 1>
919
+ SUCCESS: ErrorCode # value = <ErrorCode.SUCCESS: 0>
920
+ TAMIL: OCRLanguage # value = <OCRLanguage.TAMIL: 10>
921
+ TELUGU: OCRLanguage # value = <OCRLanguage.TELUGU: 11>
922
+ TGA: ImageType # value = <ImageType.TGA: 6>
923
+ THAI: OCRLanguage # value = <OCRLanguage.THAI: 13>
924
+ TIFF: ImageType # value = <ImageType.TIFF: 5>
925
+ UNKNOWN: OCRLanguage # value = <OCRLanguage.UNKNOWN: 0>
926
+ UNKNOWN_ERROR: ErrorCode # value = <ErrorCode.UNKNOWN_ERROR: 100>
927
+ WEBP: ImageType # value = <ImageType.WEBP: 8>
Binary file
Binary file
File without changes
@@ -0,0 +1,74 @@
1
+ Metadata-Version: 2.4
2
+ Name: ComPDFKitConversion
3
+ Version: 3.9.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.13
9
+ Classifier: Operating System :: Microsoft :: Windows
10
+ Classifier: Intended Audience :: Developers
11
+ Requires-Python: >=3.8
12
+ Description-Content-Type: text/markdown
13
+ Dynamic: author
14
+ Dynamic: author-email
15
+ Dynamic: classifier
16
+ Dynamic: description
17
+ Dynamic: description-content-type
18
+ Dynamic: home-page
19
+ Dynamic: requires-python
20
+ Dynamic: summary
21
+
22
+ # ComPDFKit Conversion SDK For Python
23
+
24
+ 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.
25
+
26
+ Effortlessly integrate the ComPDFKit Conversion SDK into your projects in just a few steps, and enable the following file format conversions:
27
+
28
+ - Convert PDF to Word (.docx)
29
+ - Convert PDF to Excel (.xlsx)
30
+ - Convert PDF to PowerPoint (.pptx)
31
+ - Convert PDF to HTML (.html)
32
+ - Convert PDF to CSV (.csv)
33
+ - Convert PDF to Image (.png, .jpg, .jpeg, .bmp, .tiff)
34
+ - Convert PDF to Plain Text (.txt)
35
+ - Convert PDF to Rich Text Format (.rtf)
36
+ - Convert PDF to Structured Data (.json)
37
+ - Convert PDF to Markdown (.md)
38
+
39
+ 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:
40
+
41
+ - Optical Character Recognition (OCR)
42
+ - Layout Analysis
43
+ - Table Recognition
44
+
45
+
46
+ ## Why ComPDFKit Conversion SDK
47
+
48
+ - Mature Technology
49
+
50
+ With years of technology accumulation, we have established a complete mechanism of product iteration to offer a continuous guarantee for product competitiveness.
51
+
52
+ - Complete PDF and Format Conversion Functionalities
53
+
54
+ Our comprehensive features can meet diverse needs and are easy for our customers to use without training costs.
55
+
56
+ - High-quality Service
57
+
58
+ professional service and technical support to quickly respond to users' feedback through onsite service or remote support like telephone, email, etc.
59
+
60
+ - Independent Intellectual
61
+
62
+ Property Rights
63
+ Our technology is independent and compliant with ISO, helping enterprises conduct international business without considering copyright risks.
64
+
65
+
66
+ ## ComPDFKit Conversion SDK
67
+
68
+ 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.
69
+
70
+ ## License & Trial
71
+
72
+ 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.
73
+
74
+ 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,14 @@
1
+ ComPDFKitConversion/DocumentAI.dll,sha256=CrPoOvEkiX6S3mOG_nLZKpPJhp7sJ9ECm9X_VBt1HRI,1538560
2
+ ComPDFKitConversion/__init__.py,sha256=DbxkvBkb6zQYbTL71s6rj7Qv0ioCrLMQe0gfWeTz68Q,997
3
+ ComPDFKitConversion/__init__.pyi,sha256=jS8_jIp4FXoOUZJzbmivZpmotoOO_Ub29o46d0HvQls,581
4
+ ComPDFKitConversion/_core.cp313-win_amd64.pyd,sha256=A65mLkRrd9mafnlfsekZJQkT4aOstZ4T1tADNVPTXGs,340992
5
+ ComPDFKitConversion/_core.pyi,sha256=hhMFNdO-L9XR-JqAmJ8jG9jRnSMJZ4w_ymW5jBo09yc,42511
6
+ ComPDFKitConversion/cpdfconversionsdk.dll,sha256=niGOj8nHvvF8tBBe7Wnw9BchezxE8DFP-wc9TCR0-c4,25495040
7
+ ComPDFKitConversion/onnxruntime.dll,sha256=uQIesjqFlPxI6a2KAlgsDLGTdXIr-7_BAXFBGmiKwGI,10807216
8
+ ComPDFKitConversion/onnxruntime_providers_shared.dll,sha256=mguc6T0A-YBdn9ly6JldMtZ5oLSo_MTysN1aTL5MEZw,22048
9
+ ComPDFKitConversion/opencv_world4100.dll,sha256=q0evDhdkAz7UzmS7Okv3_rGWprf_3nu_E9M8dUolROg,25351168
10
+ ComPDFKitConversion/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
+ compdfkitconversion-3.9.0.dist-info/METADATA,sha256=pLtufyTc8NFA-JBoGN6zO31OuOTfUN0NHKJ3QAuY23s,3731
12
+ compdfkitconversion-3.9.0.dist-info/WHEEL,sha256=-WvvtQtdhM1F5HMi-4hSXLQ_1Tg6qJRWO1HnLNr4mCU,102
13
+ compdfkitconversion-3.9.0.dist-info/top_level.txt,sha256=wiM_kGlJ-WTJMAUWmnkl4wlQx6IyHEBDUkyHSo_IfWc,20
14
+ compdfkitconversion-3.9.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.10.2)
3
+ Root-Is-Purelib: false
4
+ Tag: cp313-cp313-win_amd64
5
+
@@ -0,0 +1 @@
1
+ ComPDFKitConversion