docling-parse 1.3.0__tar.gz
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.
Potentially problematic release.
This version of docling-parse might be problematic. Click here for more details.
- docling_parse-1.3.0/LICENSE +21 -0
- docling_parse-1.3.0/PKG-INFO +208 -0
- docling_parse-1.3.0/README.md +178 -0
- docling_parse-1.3.0/build.py +50 -0
- docling_parse-1.3.0/docling_parse/__init__.py +0 -0
- docling_parse-1.3.0/docling_parse/eval.py +104 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/Adobe-CNS1-0 +134 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/Adobe-CNS1-1 +145 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/Adobe-CNS1-2 +146 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/Adobe-CNS1-3 +151 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/Adobe-CNS1-4 +152 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/Adobe-CNS1-5 +152 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/Adobe-CNS1-6 +152 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/Adobe-CNS1-7 +150 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/B5-H +331 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/B5-V +88 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/B5pc-H +335 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/B5pc-V +88 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/CNS-EUC-H +488 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/CNS-EUC-V +536 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/CNS1-H +235 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/CNS1-V +88 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/CNS2-H +158 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/CNS2-V +74 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/ETHK-B5-H +1326 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/ETHK-B5-V +88 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/ETen-B5-H +341 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/ETen-B5-V +89 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/ETenms-B5-H +77 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/ETenms-B5-V +97 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/HKdla-B5-H +1132 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/HKdla-B5-V +87 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/HKdlb-B5-H +1014 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/HKdlb-B5-V +87 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/HKgccs-B5-H +647 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/HKgccs-B5-V +87 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/HKm314-B5-H +637 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/HKm314-B5-V +87 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/HKm471-B5-H +787 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/HKm471-B5-V +87 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/HKscs-B5-H +1329 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/HKscs-B5-V +88 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/UniCNS-UCS2-H +16990 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/UniCNS-UCS2-V +88 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/UniCNS-UTF16-H +19146 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/UniCNS-UTF16-V +92 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/UniCNS-UTF32-H +19144 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/UniCNS-UTF32-V +92 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/UniCNS-UTF8-H +19209 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/CMap/UniCNS-UTF8-V +92 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-CNS1-7/cid2code.txt +19290 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/Adobe-GB1-0 +109 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/Adobe-GB1-1 +117 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/Adobe-GB1-2 +165 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/Adobe-GB1-3 +165 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/Adobe-GB1-4 +195 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/Adobe-GB1-5 +200 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/GB-EUC-H +171 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/GB-EUC-V +96 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/GB-H +164 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/GB-V +96 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/GBK-EUC-H +4271 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/GBK-EUC-V +95 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/GBK2K-H +5323 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/GBK2K-V +116 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/GBKp-EUC-H +4270 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/GBKp-EUC-V +95 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/GBT-EUC-H +2430 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/GBT-EUC-V +96 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/GBT-H +2423 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/GBT-V +96 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/GBTpc-EUC-H +2432 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/GBTpc-EUC-V +96 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/GBpc-EUC-H +173 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/GBpc-EUC-V +96 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/UniGB-UCS2-H +14319 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/UniGB-UCS2-V +99 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/UniGB-UTF16-H +14383 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/UniGB-UTF16-V +102 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/UniGB-UTF32-H +14381 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/UniGB-UTF32-V +102 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/UniGB-UTF8-H +14586 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/CMap/UniGB-UTF8-V +102 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-GB1-5/cid2code.txt +30370 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Identity-0/CMap/Identity-H +337 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Identity-0/CMap/Identity-V +71 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/78-EUC-H +724 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/78-EUC-V +102 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/78-H +716 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/78-RKSJ-H +726 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/78-RKSJ-V +102 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/78-V +102 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/78ms-RKSJ-H +816 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/78ms-RKSJ-V +153 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/83pv-RKSJ-H +312 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/90ms-RKSJ-H +257 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/90ms-RKSJ-V +154 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/90msp-RKSJ-H +255 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/90msp-RKSJ-V +153 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/90pv-RKSJ-H +353 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/90pv-RKSJ-V +127 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/Add-H +725 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/Add-RKSJ-H +736 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/Add-RKSJ-V +133 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/Add-V +133 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/Adobe-Japan1-0 +111 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/Adobe-Japan1-1 +111 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/Adobe-Japan1-2 +113 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/Adobe-Japan1-3 +114 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/Adobe-Japan1-4 +138 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/Adobe-Japan1-5 +157 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/Adobe-Japan1-6 +168 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/Adobe-Japan1-7 +166 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/EUC-H +205 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/EUC-V +103 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/Ext-H +755 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/Ext-RKSJ-H +766 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/Ext-RKSJ-V +115 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/Ext-V +115 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/H +198 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/Hankaku +86 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/Hiragana +84 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/Katakana +78 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/NWP-H +855 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/NWP-V +123 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/RKSJ-H +208 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/RKSJ-V +103 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/Roman +77 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/UniJIS-UCS2-H +8868 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/UniJIS-UCS2-HW-H +79 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/UniJIS-UCS2-HW-V +277 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/UniJIS-UCS2-V +273 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/UniJIS-UTF16-H +14480 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/UniJIS-UTF16-V +303 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/UniJIS-UTF32-H +14478 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/UniJIS-UTF32-V +303 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/UniJIS-UTF8-H +14508 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/UniJIS-UTF8-V +304 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/UniJIS2004-UTF16-H +14483 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/UniJIS2004-UTF16-V +303 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/UniJIS2004-UTF32-H +14481 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/UniJIS2004-UTF32-V +303 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/UniJIS2004-UTF8-H +14511 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/UniJIS2004-UTF8-V +304 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/UniJISPro-UCS2-HW-V +285 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/UniJISPro-UCS2-V +278 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/UniJISPro-UTF8-V +282 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/UniJISX0213-UTF32-H +14472 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/UniJISX0213-UTF32-V +299 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/UniJISX02132004-UTF32-H +14475 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/UniJISX02132004-UTF32-V +299 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/V +103 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/CMap/WP-Symbol +103 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/cid2code.txt +23491 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/jisx0208-jp04.txt +6893 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/jisx0208-jp90.txt +6889 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/jisx0212-jp04.txt +6085 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/jisx0212-jp90.txt +6081 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/jisx0213-jp04.txt +4378 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Japan1-7/jisx0213-jp90.txt +4379 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-KR-9/CMap/Adobe-KR-0 +87 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-KR-9/CMap/Adobe-KR-1 +94 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-KR-9/CMap/Adobe-KR-2 +120 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-KR-9/CMap/Adobe-KR-3 +121 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-KR-9/CMap/Adobe-KR-4 +122 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-KR-9/CMap/Adobe-KR-5 +123 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-KR-9/CMap/Adobe-KR-6 +131 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-KR-9/CMap/Adobe-KR-7 +149 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-KR-9/CMap/Adobe-KR-8 +163 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-KR-9/CMap/Adobe-KR-9 +165 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-KR-9/CMap/UniAKR-UTF16-H +12594 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-KR-9/CMap/UniAKR-UTF32-H +12588 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-KR-9/CMap/UniAKR-UTF8-H +12686 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-KR-9/cid2code.txt +22931 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Korea1-2/CMap/Adobe-Korea1-0 +114 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Korea1-2/CMap/Adobe-Korea1-1 +149 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Korea1-2/CMap/Adobe-Korea1-2 +149 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Korea1-2/CMap/KSC-EUC-H +560 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Korea1-2/CMap/KSC-EUC-V +92 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Korea1-2/CMap/KSC-H +554 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Korea1-2/CMap/KSC-Johab-H +4343 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Korea1-2/CMap/KSC-Johab-V +92 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Korea1-2/CMap/KSC-V +92 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Korea1-2/CMap/KSCms-UHC-H +774 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Korea1-2/CMap/KSCms-UHC-HW-H +773 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Korea1-2/CMap/KSCms-UHC-HW-V +91 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Korea1-2/CMap/KSCms-UHC-V +92 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Korea1-2/CMap/KSCpc-EUC-H +606 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Korea1-2/CMap/KSCpc-EUC-V +92 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Korea1-2/CMap/UniKS-UCS2-H +8723 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Korea1-2/CMap/UniKS-UCS2-V +93 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Korea1-2/CMap/UniKS-UTF16-H +8893 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Korea1-2/CMap/UniKS-UTF16-V +97 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Korea1-2/CMap/UniKS-UTF32-H +8891 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Korea1-2/CMap/UniKS-UTF32-V +97 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Korea1-2/CMap/UniKS-UTF8-H +8989 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Korea1-2/CMap/UniKS-UTF8-V +97 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Adobe-Korea1-2/cid2code.txt +18529 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/LICENSE.md +28 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/Makefile +108 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/README.md +353 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/VERSIONS.txt +207 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/deprecated/Adobe-Japan2-0/CMap/Adobe-Japan2-0 +102 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/deprecated/Adobe-Japan2-0/CMap/Hojo-EUC-H +160 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/deprecated/Adobe-Japan2-0/CMap/Hojo-EUC-V +74 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/deprecated/Adobe-Japan2-0/CMap/Hojo-H +160 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/deprecated/Adobe-Japan2-0/CMap/Hojo-V +74 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/deprecated/Adobe-Japan2-0/CMap/UniHojo-UCS2-H +4434 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/deprecated/Adobe-Japan2-0/CMap/UniHojo-UCS2-V +73 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/deprecated/Adobe-Japan2-0/CMap/UniHojo-UTF16-H +4466 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/deprecated/Adobe-Japan2-0/CMap/UniHojo-UTF16-V +73 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/deprecated/Adobe-Japan2-0/CMap/UniHojo-UTF32-H +4460 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/deprecated/Adobe-Japan2-0/CMap/UniHojo-UTF32-V +73 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/deprecated/Adobe-Japan2-0/CMap/UniHojo-UTF8-H +4489 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/deprecated/Adobe-Japan2-0/CMap/UniHojo-UTF8-V +73 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/deprecated/Adobe-Japan2-0/cid2code.txt +6133 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/deprecated/Adobe-Japan2-0/jisx0212-jp04.txt +6085 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources/deprecated/Adobe-Japan2-0/jisx0212-jp90.txt +6081 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/cmap-resources.txt +1 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/encodings/macexpert.dat +165 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/encodings/macroman.dat +207 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/encodings/std.dat +149 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/encodings/winansi.dat +218 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Arial.afm +2290 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Arial_Bold.afm +2290 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Arial_Bold_Italic.afm +1838 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Arial_Italic.afm +1875 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Courier-Bold.afm +342 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Courier-BoldOblique.afm +342 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Courier-Oblique.afm +342 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Courier.afm +342 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Georgia.afm +643 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Georgia_Bold.afm +643 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Georgia_Bold_Italic.afm +643 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Georgia_Italic.afm +643 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Helvetica-Bold.afm +2827 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Helvetica-BoldOblique.afm +2827 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Helvetica-Oblique.afm +3051 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Helvetica.afm +3051 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Times-Bold.afm +2588 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Times-BoldItalic.afm +2384 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Times-Italic.afm +2667 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Times-Roman.afm +2419 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Times_New_Roman.afm +2249 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Times_New_Roman_Bold.afm +2247 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Times_New_Roman_Bold_Italic.afm +1847 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Times_New_Roman_Italic.afm +1823 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Trebuchet_MS.afm +754 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Trebuchet_MS_Bold.afm +747 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Trebuchet_MS_Bold_Italic.afm +734 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Trebuchet_MS_Italic.afm +735 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Verdana.afm +1489 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Verdana_Bold.afm +951 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Verdana_Bold_Italic.afm +951 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/Verdana_Italic.afm +951 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/ZapfDingbats.afm +225 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/lucon.afm +722 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/php_Courier-Bold.afm +6073 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/php_Courier.afm +6073 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/php_Helvetica-Bold.afm +8959 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/php_Helvetica.afm +9195 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/php_Times-Bold.afm +8690 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/php_Times-Italic.afm +8748 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/php_Times-Roman.afm +8548 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/php_arial.afm +6396 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/php_verdana.afm +11752 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/php_verdanab.afm +14963 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/slkscr.afm +277 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/slkscrb.afm +277 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/slkscre.afm +277 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/slkscreb.afm +277 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/times.afm +2599 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/timesbd.afm +2597 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/timesbi.afm +1843 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/timesi.afm +1819 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/verdanab.afm +951 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/Microsoft/verdanai.afm +951 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmb10.afm +372 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmbsy10.afm +211 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmbsy5.afm +211 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmbsy6.afm +211 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmbsy7.afm +211 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmbsy8.afm +211 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmbsy9.afm +211 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmbx10.afm +372 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmbx12.afm +372 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmbx5.afm +372 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmbx6.afm +372 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmbx7.afm +372 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmbx8.afm +372 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmbx9.afm +372 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmbxsl10.afm +372 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmbxti10.afm +371 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmcsc10.afm +373 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmcsc8.afm +373 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmcsc9.afm +373 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmdunh10.afm +372 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmex10.afm +193 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmex7.afm +193 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmex8.afm +193 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmex9.afm +193 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmff10.afm +372 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmfi10.afm +371 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmfib8.afm +372 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cminch.afm +112 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmitt10.afm +187 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmmi10.afm +349 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmmi12.afm +349 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmmi5.afm +349 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmmi6.afm +349 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmmi7.afm +349 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmmi8.afm +349 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmmi9.afm +349 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmmib10.afm +349 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmmib5.afm +349 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmmib6.afm +349 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmmib7.afm +349 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmmib8.afm +349 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmmib9.afm +349 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmr10.afm +372 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmr12.afm +372 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmr17.afm +372 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmr5.afm +362 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmr6.afm +372 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmr7.afm +372 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmr8.afm +372 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmr9.afm +372 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmsl10.afm +372 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmsl12.afm +372 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmsl8.afm +372 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmsl9.afm +372 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmsltt10.afm +187 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmss10.afm +334 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmss12.afm +334 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmss17.afm +334 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmss8.afm +334 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmss9.afm +334 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmssbx10.afm +334 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmssdc10.afm +334 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmssi10.afm +334 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmssi12.afm +334 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmssi17.afm +334 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmssi8.afm +334 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmssi9.afm +334 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmssq8.afm +334 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmssqi8.afm +334 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmsy10.afm +211 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmsy5.afm +211 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmsy6.afm +211 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmsy7.afm +211 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmsy8.afm +211 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmsy9.afm +211 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmtcsc10.afm +186 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmtex10.afm +187 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmtex8.afm +187 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmtex9.afm +187 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmti10.afm +371 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmti12.afm +371 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmti7.afm +371 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmti8.afm +371 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmti9.afm +371 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmtt10.afm +187 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmtt12.afm +187 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmtt8.afm +187 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmtt9.afm +187 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmu10.afm +371 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/cmvtt10.afm +372 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/euex10.afm +82 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/euex7.afm +82 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/euex8.afm +82 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/euex9.afm +82 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/eufb10.afm +128 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/eufb5.afm +128 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/eufb7.afm +128 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/eufm10.afm +128 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/eufm5.afm +128 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/eufm7.afm +128 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/eurb10.afm +232 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/eurb5.afm +232 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/eurb7.afm +232 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/eurm10.afm +168 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/eurm5.afm +231 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/eurm7.afm +231 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/eusb10.afm +72 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/eusb5.afm +72 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/eusb7.afm +72 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/eusm10.afm +72 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/eusm5.afm +72 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/eusm7.afm +72 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/lasy10.afm +40 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/lasy5.afm +40 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/lasy6.afm +40 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/lasy7.afm +40 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/lasy8.afm +40 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/lasy9.afm +40 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/lasyb10.afm +40 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/lcircle1.afm +122 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/lcirclew.afm +122 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/lcmss8.afm +332 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/lcmssb8.afm +332 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/lcmssi8.afm +332 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/line10.afm +142 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/linew10.afm +142 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/msam10.afm +181 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/msam5.afm +181 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/msam6.afm +181 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/msam7.afm +181 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/msam8.afm +181 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/msam9.afm +181 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/msbm10.afm +176 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/msbm5.afm +176 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/msbm6.afm +176 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/msbm7.afm +176 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/msbm8.afm +176 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/msbm9.afm +176 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/wncyb10.afm +438 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/wncyi10.afm +458 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/wncyr10.afm +438 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/wncysc10.afm +409 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_custom/TeX/wncyss10.afm +438 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_standard/Courier-Bold.afm +342 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_standard/Courier-BoldOblique.afm +342 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_standard/Courier-Oblique.afm +342 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_standard/Courier.afm +342 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_standard/Helvetica-Bold.afm +2827 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_standard/Helvetica-BoldOblique.afm +2827 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_standard/Helvetica-Oblique.afm +3051 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_standard/Helvetica.afm +3051 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_standard/Symbol.afm +213 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_standard/Times-Bold.afm +2588 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_standard/Times-BoldItalic.afm +2384 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_standard/Times-Italic.afm +2667 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_standard/Times-Roman.afm +2419 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/fonts_standard/ZapfDingbats.afm +225 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/glyphs_custom/MathematicalPi/MathematicalPi.dat +503 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/glyphs_custom/Other/AdvP4C4E74 +9 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/glyphs_custom/TeX/glyphs.dat +386 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/glyphs_custom/TeX/glyphs_02.dat +70 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/glyphs_standard/additional.dat +149 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/glyphs_standard/additional_v01.dat +25 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/glyphs_standard/additional_v02.dat +226 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/glyphs_standard/glyphlist.dat +4333 -0
- docling_parse-1.3.0/docling_parse/pdf_resources/glyphs_standard/zapfdingbats.dat +247 -0
- docling_parse-1.3.0/docling_parse/run.py +156 -0
- docling_parse-1.3.0/pyproject.toml +83 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) [year] [fullname]
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: docling-parse
|
|
3
|
+
Version: 1.3.0
|
|
4
|
+
Summary: Simple package to extract text with coordinates from programmatic PDFs
|
|
5
|
+
Home-page: https://github.com/DS4SD/docling-parse
|
|
6
|
+
License: MIT
|
|
7
|
+
Keywords: docling,pdf,parser
|
|
8
|
+
Author: Peter Staar
|
|
9
|
+
Author-email: taa@zurich.ibm.com
|
|
10
|
+
Maintainer: Peter Staar
|
|
11
|
+
Maintainer-email: taa@zurich.ibm.com
|
|
12
|
+
Requires-Python: >=3.9,<4.0
|
|
13
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Intended Audience :: Science/Research
|
|
16
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
17
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
|
18
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
19
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
20
|
+
Classifier: Programming Language :: C++
|
|
21
|
+
Classifier: Programming Language :: Python :: 3
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
26
|
+
Requires-Dist: tabulate (>=0.9.0,<1.0.0)
|
|
27
|
+
Project-URL: Repository, https://github.com/DS4SD/docling-parse
|
|
28
|
+
Description-Content-Type: text/markdown
|
|
29
|
+
|
|
30
|
+
# Docling Parse
|
|
31
|
+
|
|
32
|
+
[](https://pypi.org/project/docling-parse/)
|
|
33
|
+
[](https://pypi.org/project/docling-parse/)
|
|
34
|
+
[](https://python-poetry.org/)
|
|
35
|
+
[](https://github.com/pybind/pybind11/)
|
|
36
|
+
[](https://github.com/DS4SD/docling-parse/)
|
|
37
|
+
[](https://opensource.org/licenses/MIT)
|
|
38
|
+
|
|
39
|
+
Simple package to extract text with coordinates from programmatic PDFs.
|
|
40
|
+
This package is part of the [Docling](https://github.com/DS4SD/docling) conversion.
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## Quick start
|
|
44
|
+
|
|
45
|
+
Install the package from Pypi
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
pip install docling-parse
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Convert a PDF
|
|
52
|
+
|
|
53
|
+
```python
|
|
54
|
+
from docling_parse.docling_parse import pdf_parser
|
|
55
|
+
|
|
56
|
+
# Do this only once to load fonts (avoid initialising it many times)
|
|
57
|
+
parser = pdf_parser()
|
|
58
|
+
|
|
59
|
+
# parser.set_loglevel(1) # 1=error, 2=warning, 3=success, 4=info
|
|
60
|
+
|
|
61
|
+
doc_file = "my-doc.pdf" # filename
|
|
62
|
+
doc_key = f"key={pdf_doc}" # unique document key (eg hash, UUID, etc)
|
|
63
|
+
|
|
64
|
+
# Load the document from file using filename doc_file. This only loads
|
|
65
|
+
# the QPDF document, but no extracted data
|
|
66
|
+
success = parser.load_document(doc_key, doc_file)
|
|
67
|
+
|
|
68
|
+
# Open the file in binary mode and read its contents
|
|
69
|
+
# with open(pdf_doc, "rb") as file:
|
|
70
|
+
# file_content = file.read()
|
|
71
|
+
|
|
72
|
+
# Create a BytesIO object and write the file contents to it
|
|
73
|
+
# bytes_io = io.BytesIO(file_content)
|
|
74
|
+
# success = parser.load_document_from_bytesio(doc_key, bytes_io)
|
|
75
|
+
|
|
76
|
+
# Parse the entire document in one go, easier, but could require
|
|
77
|
+
# a lot (more) memory as parsing page-by-page
|
|
78
|
+
# json_doc = parser.parse_pdf_from_key(doc_key)
|
|
79
|
+
|
|
80
|
+
# Get number of pages
|
|
81
|
+
num_pages = parser.number_of_pages(doc_key)
|
|
82
|
+
|
|
83
|
+
# Parse page by page to minimize memory footprint
|
|
84
|
+
for page in range(0, num_pages):
|
|
85
|
+
|
|
86
|
+
# Internal memory for page is auto-deleted after this call.
|
|
87
|
+
# No need to unload a specifc page
|
|
88
|
+
json_doc = parser.parse_pdf_from_key_on_page(doc_key, page)
|
|
89
|
+
|
|
90
|
+
if "pages" not in json_doc: # page could not get parsed
|
|
91
|
+
continue
|
|
92
|
+
|
|
93
|
+
# parsed page is the first one!
|
|
94
|
+
json_page = json_doc["pages"][0]
|
|
95
|
+
|
|
96
|
+
page_dimensions = [json_page["dimensions"]["width"], json_page["dimensions"]["height"]]
|
|
97
|
+
|
|
98
|
+
# find text cells
|
|
99
|
+
cells=[]
|
|
100
|
+
for cell_id,cell in enumerate(json_page["cells"]):
|
|
101
|
+
cells.append([page,
|
|
102
|
+
cell_id,
|
|
103
|
+
cell["content"]["rnormalized"], # text
|
|
104
|
+
cell["box"]["device"][0], # x0 (lower left x)
|
|
105
|
+
cell["box"]["device"][1], # y0 (lower left y)
|
|
106
|
+
cell["box"]["device"][2], # x1 (upper right x)
|
|
107
|
+
cell["box"]["device"][3], # y1 (upper right y)
|
|
108
|
+
])
|
|
109
|
+
|
|
110
|
+
# find bitmap images
|
|
111
|
+
images=[]
|
|
112
|
+
for image_id,image in enumerate(json_page["images"]):
|
|
113
|
+
images.append([page,
|
|
114
|
+
image_id,
|
|
115
|
+
image["box"][0], # x0 (lower left x)
|
|
116
|
+
image["box"][1], # y0 (lower left y)
|
|
117
|
+
image["box"][2], # x1 (upper right x)
|
|
118
|
+
image["box"][3], # y1 (upper right y)
|
|
119
|
+
])
|
|
120
|
+
|
|
121
|
+
# find paths
|
|
122
|
+
paths=[]
|
|
123
|
+
for path_id,path in enumerate(json_page["paths"]):
|
|
124
|
+
paths.append([page,
|
|
125
|
+
path_id,
|
|
126
|
+
path["x-values"], # array of x values
|
|
127
|
+
path["y-values"], # array of y values
|
|
128
|
+
])
|
|
129
|
+
|
|
130
|
+
# Unload the (QPDF) document and buffers
|
|
131
|
+
parser.unload_document(doc_key)
|
|
132
|
+
|
|
133
|
+
# Unloads everything at once
|
|
134
|
+
# parser.unload_documents()
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
Use the CLI
|
|
138
|
+
|
|
139
|
+
```sh
|
|
140
|
+
$ docling-parse -h
|
|
141
|
+
usage: docling-parse [-h] -p PDF
|
|
142
|
+
|
|
143
|
+
Process a PDF file.
|
|
144
|
+
|
|
145
|
+
options:
|
|
146
|
+
-h, --help show this help message and exit
|
|
147
|
+
-p PDF, --pdf PDF Path to the PDF file
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
## Development
|
|
151
|
+
|
|
152
|
+
### CXX
|
|
153
|
+
|
|
154
|
+
To build the parse, simply run the following command in the root folder,
|
|
155
|
+
|
|
156
|
+
```sh
|
|
157
|
+
rm -rf build; cmake -B ./build; cd build; make
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
You can run the parser from your build folder with
|
|
161
|
+
|
|
162
|
+
```sh
|
|
163
|
+
./parse.exe <input-file> <optional-logging:true>
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
If you dont have an input file, then a template input file will be printed on the terminal.
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
### Python
|
|
170
|
+
|
|
171
|
+
To build the package, simply run (make sure [poetry](https://python-poetry.org/) is [installed](https://python-poetry.org/docs/#installing-with-the-official-installer)),
|
|
172
|
+
|
|
173
|
+
```
|
|
174
|
+
poetry build
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
To test the package, run,
|
|
178
|
+
|
|
179
|
+
```
|
|
180
|
+
poetry run pytest ./tests/test_parse.py
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
## Contributing
|
|
185
|
+
|
|
186
|
+
Please read [Contributing to Docling Parse](https://github.com/DS4SD/docling-parse/blob/main/CONTRIBUTING.md) for details.
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
## References
|
|
190
|
+
|
|
191
|
+
If you use Docling in your projects, please consider citing the following:
|
|
192
|
+
|
|
193
|
+
```bib
|
|
194
|
+
@software{Docling,
|
|
195
|
+
author = {Deep Search Team},
|
|
196
|
+
month = {7},
|
|
197
|
+
title = {{Docling}},
|
|
198
|
+
url = {https://github.com/DS4SD/docling},
|
|
199
|
+
version = {main},
|
|
200
|
+
year = {2024}
|
|
201
|
+
}
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
## License
|
|
205
|
+
|
|
206
|
+
The Docling Parse codebase is under MIT license.
|
|
207
|
+
For individual model usage, please refer to the model licenses found in the original packages.
|
|
208
|
+
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
# Docling Parse
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/docling-parse/)
|
|
4
|
+
[](https://pypi.org/project/docling-parse/)
|
|
5
|
+
[](https://python-poetry.org/)
|
|
6
|
+
[](https://github.com/pybind/pybind11/)
|
|
7
|
+
[](https://github.com/DS4SD/docling-parse/)
|
|
8
|
+
[](https://opensource.org/licenses/MIT)
|
|
9
|
+
|
|
10
|
+
Simple package to extract text with coordinates from programmatic PDFs.
|
|
11
|
+
This package is part of the [Docling](https://github.com/DS4SD/docling) conversion.
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## Quick start
|
|
15
|
+
|
|
16
|
+
Install the package from Pypi
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
pip install docling-parse
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Convert a PDF
|
|
23
|
+
|
|
24
|
+
```python
|
|
25
|
+
from docling_parse.docling_parse import pdf_parser
|
|
26
|
+
|
|
27
|
+
# Do this only once to load fonts (avoid initialising it many times)
|
|
28
|
+
parser = pdf_parser()
|
|
29
|
+
|
|
30
|
+
# parser.set_loglevel(1) # 1=error, 2=warning, 3=success, 4=info
|
|
31
|
+
|
|
32
|
+
doc_file = "my-doc.pdf" # filename
|
|
33
|
+
doc_key = f"key={pdf_doc}" # unique document key (eg hash, UUID, etc)
|
|
34
|
+
|
|
35
|
+
# Load the document from file using filename doc_file. This only loads
|
|
36
|
+
# the QPDF document, but no extracted data
|
|
37
|
+
success = parser.load_document(doc_key, doc_file)
|
|
38
|
+
|
|
39
|
+
# Open the file in binary mode and read its contents
|
|
40
|
+
# with open(pdf_doc, "rb") as file:
|
|
41
|
+
# file_content = file.read()
|
|
42
|
+
|
|
43
|
+
# Create a BytesIO object and write the file contents to it
|
|
44
|
+
# bytes_io = io.BytesIO(file_content)
|
|
45
|
+
# success = parser.load_document_from_bytesio(doc_key, bytes_io)
|
|
46
|
+
|
|
47
|
+
# Parse the entire document in one go, easier, but could require
|
|
48
|
+
# a lot (more) memory as parsing page-by-page
|
|
49
|
+
# json_doc = parser.parse_pdf_from_key(doc_key)
|
|
50
|
+
|
|
51
|
+
# Get number of pages
|
|
52
|
+
num_pages = parser.number_of_pages(doc_key)
|
|
53
|
+
|
|
54
|
+
# Parse page by page to minimize memory footprint
|
|
55
|
+
for page in range(0, num_pages):
|
|
56
|
+
|
|
57
|
+
# Internal memory for page is auto-deleted after this call.
|
|
58
|
+
# No need to unload a specifc page
|
|
59
|
+
json_doc = parser.parse_pdf_from_key_on_page(doc_key, page)
|
|
60
|
+
|
|
61
|
+
if "pages" not in json_doc: # page could not get parsed
|
|
62
|
+
continue
|
|
63
|
+
|
|
64
|
+
# parsed page is the first one!
|
|
65
|
+
json_page = json_doc["pages"][0]
|
|
66
|
+
|
|
67
|
+
page_dimensions = [json_page["dimensions"]["width"], json_page["dimensions"]["height"]]
|
|
68
|
+
|
|
69
|
+
# find text cells
|
|
70
|
+
cells=[]
|
|
71
|
+
for cell_id,cell in enumerate(json_page["cells"]):
|
|
72
|
+
cells.append([page,
|
|
73
|
+
cell_id,
|
|
74
|
+
cell["content"]["rnormalized"], # text
|
|
75
|
+
cell["box"]["device"][0], # x0 (lower left x)
|
|
76
|
+
cell["box"]["device"][1], # y0 (lower left y)
|
|
77
|
+
cell["box"]["device"][2], # x1 (upper right x)
|
|
78
|
+
cell["box"]["device"][3], # y1 (upper right y)
|
|
79
|
+
])
|
|
80
|
+
|
|
81
|
+
# find bitmap images
|
|
82
|
+
images=[]
|
|
83
|
+
for image_id,image in enumerate(json_page["images"]):
|
|
84
|
+
images.append([page,
|
|
85
|
+
image_id,
|
|
86
|
+
image["box"][0], # x0 (lower left x)
|
|
87
|
+
image["box"][1], # y0 (lower left y)
|
|
88
|
+
image["box"][2], # x1 (upper right x)
|
|
89
|
+
image["box"][3], # y1 (upper right y)
|
|
90
|
+
])
|
|
91
|
+
|
|
92
|
+
# find paths
|
|
93
|
+
paths=[]
|
|
94
|
+
for path_id,path in enumerate(json_page["paths"]):
|
|
95
|
+
paths.append([page,
|
|
96
|
+
path_id,
|
|
97
|
+
path["x-values"], # array of x values
|
|
98
|
+
path["y-values"], # array of y values
|
|
99
|
+
])
|
|
100
|
+
|
|
101
|
+
# Unload the (QPDF) document and buffers
|
|
102
|
+
parser.unload_document(doc_key)
|
|
103
|
+
|
|
104
|
+
# Unloads everything at once
|
|
105
|
+
# parser.unload_documents()
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Use the CLI
|
|
109
|
+
|
|
110
|
+
```sh
|
|
111
|
+
$ docling-parse -h
|
|
112
|
+
usage: docling-parse [-h] -p PDF
|
|
113
|
+
|
|
114
|
+
Process a PDF file.
|
|
115
|
+
|
|
116
|
+
options:
|
|
117
|
+
-h, --help show this help message and exit
|
|
118
|
+
-p PDF, --pdf PDF Path to the PDF file
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## Development
|
|
122
|
+
|
|
123
|
+
### CXX
|
|
124
|
+
|
|
125
|
+
To build the parse, simply run the following command in the root folder,
|
|
126
|
+
|
|
127
|
+
```sh
|
|
128
|
+
rm -rf build; cmake -B ./build; cd build; make
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
You can run the parser from your build folder with
|
|
132
|
+
|
|
133
|
+
```sh
|
|
134
|
+
./parse.exe <input-file> <optional-logging:true>
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
If you dont have an input file, then a template input file will be printed on the terminal.
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
### Python
|
|
141
|
+
|
|
142
|
+
To build the package, simply run (make sure [poetry](https://python-poetry.org/) is [installed](https://python-poetry.org/docs/#installing-with-the-official-installer)),
|
|
143
|
+
|
|
144
|
+
```
|
|
145
|
+
poetry build
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
To test the package, run,
|
|
149
|
+
|
|
150
|
+
```
|
|
151
|
+
poetry run pytest ./tests/test_parse.py
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
## Contributing
|
|
156
|
+
|
|
157
|
+
Please read [Contributing to Docling Parse](https://github.com/DS4SD/docling-parse/blob/main/CONTRIBUTING.md) for details.
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
## References
|
|
161
|
+
|
|
162
|
+
If you use Docling in your projects, please consider citing the following:
|
|
163
|
+
|
|
164
|
+
```bib
|
|
165
|
+
@software{Docling,
|
|
166
|
+
author = {Deep Search Team},
|
|
167
|
+
month = {7},
|
|
168
|
+
title = {{Docling}},
|
|
169
|
+
url = {https://github.com/DS4SD/docling},
|
|
170
|
+
version = {main},
|
|
171
|
+
year = {2024}
|
|
172
|
+
}
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
## License
|
|
176
|
+
|
|
177
|
+
The Docling Parse codebase is under MIT license.
|
|
178
|
+
For individual model usage, please refer to the model licenses found in the original packages.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
|
|
3
|
+
import os
|
|
4
|
+
|
|
5
|
+
import sys
|
|
6
|
+
|
|
7
|
+
import subprocess
|
|
8
|
+
|
|
9
|
+
ROOT_DIR = os.path.abspath("./")
|
|
10
|
+
BUILD_DIR = os.path.join(ROOT_DIR, "build")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def run(cmd, cwd="./"):
|
|
14
|
+
|
|
15
|
+
print(f"\nlaunch: {cmd}")
|
|
16
|
+
|
|
17
|
+
parts = cmd.split(" ")
|
|
18
|
+
message = subprocess.run(parts, cwd=cwd)
|
|
19
|
+
|
|
20
|
+
if "returncode=0" in str(message):
|
|
21
|
+
print(f" -> SUCCESS")
|
|
22
|
+
return True
|
|
23
|
+
|
|
24
|
+
print(f" -> ERROR with message: '{message}'\n")
|
|
25
|
+
return False
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def build_local(num_threads: int):
|
|
29
|
+
|
|
30
|
+
if not os.path.exists(BUILD_DIR):
|
|
31
|
+
print("python executable: ", sys.executable)
|
|
32
|
+
|
|
33
|
+
cmd = f"cmake -B {BUILD_DIR} -DPYTHON_EXECUTABLE={sys.executable}"
|
|
34
|
+
success = run(cmd, cwd=ROOT_DIR)
|
|
35
|
+
if not success:
|
|
36
|
+
raise RuntimeError("Error building.")
|
|
37
|
+
else:
|
|
38
|
+
print(f"build directory detected: {BUILD_DIR}")
|
|
39
|
+
|
|
40
|
+
cmd = f"cmake --build {BUILD_DIR} --target install"
|
|
41
|
+
if num_threads > 1:
|
|
42
|
+
cmd += f" -j {num_threads}"
|
|
43
|
+
success = run(cmd, cwd=ROOT_DIR)
|
|
44
|
+
if not success:
|
|
45
|
+
raise RuntimeError("Error building.")
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
if "__main__" == __name__:
|
|
49
|
+
num_threads = int(os.getenv("BUILD_THREADS", "4"))
|
|
50
|
+
build_local(num_threads=num_threads)
|
|
File without changes
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import argparse
|
|
2
|
+
import glob
|
|
3
|
+
import io
|
|
4
|
+
import os
|
|
5
|
+
|
|
6
|
+
from tabulate import tabulate
|
|
7
|
+
|
|
8
|
+
# from docling_parse.docling_parse import pdf_parser
|
|
9
|
+
import docling_parse
|
|
10
|
+
from docling_parse import pdf_parser
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def main():
|
|
14
|
+
# Create the argument parser
|
|
15
|
+
parser = argparse.ArgumentParser(description="Process a PDF file.")
|
|
16
|
+
|
|
17
|
+
# Add an argument for the path to the PDF file
|
|
18
|
+
parser.add_argument(
|
|
19
|
+
"-l",
|
|
20
|
+
"--log-level",
|
|
21
|
+
type=int,
|
|
22
|
+
required=False,
|
|
23
|
+
default=2,
|
|
24
|
+
help="log-level 1,2,3,4",
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
# Add an argument for the path to the PDF file
|
|
28
|
+
parser.add_argument(
|
|
29
|
+
"-d",
|
|
30
|
+
"--pdfdir",
|
|
31
|
+
type=str,
|
|
32
|
+
help="Path to the directory with PDF files",
|
|
33
|
+
required=True,
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
# Add an argument for the path to the PDF file
|
|
37
|
+
parser.add_argument(
|
|
38
|
+
"-m",
|
|
39
|
+
"--max-docs",
|
|
40
|
+
type=int,
|
|
41
|
+
required=False,
|
|
42
|
+
default=None,
|
|
43
|
+
help="max number of documents to run on",
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
# Parse the command-line arguments
|
|
47
|
+
args = parser.parse_args()
|
|
48
|
+
print(f"The provided PDF path is: {args.pdfdir}")
|
|
49
|
+
|
|
50
|
+
# Check if the provided path is valid
|
|
51
|
+
if not os.path.exists(args.pdfdir):
|
|
52
|
+
print(f"Error: The directory {args.pdfdir} does not exist.")
|
|
53
|
+
return
|
|
54
|
+
|
|
55
|
+
# Print the path to the PDF file (or add your processing logic here)
|
|
56
|
+
|
|
57
|
+
parser = docling_parse.pdf_parser()
|
|
58
|
+
parser.set_loglevel(args.log_level)
|
|
59
|
+
|
|
60
|
+
overview = []
|
|
61
|
+
|
|
62
|
+
doc_files = sorted(glob.glob(os.path.join(args.pdfdir, "*.pdf")))
|
|
63
|
+
if args.max_docs != None:
|
|
64
|
+
doc_files = doc_files[0 : args.max_docs]
|
|
65
|
+
|
|
66
|
+
for doc_id, doc_file in enumerate(doc_files):
|
|
67
|
+
print(doc_file)
|
|
68
|
+
|
|
69
|
+
doc_key = f"key={doc_file}" # unique document key (eg hash, UUID, etc)
|
|
70
|
+
|
|
71
|
+
# Load the document
|
|
72
|
+
success = parser.load_document(doc_key, doc_file)
|
|
73
|
+
# parser.set_loglevel(args.log_level)
|
|
74
|
+
|
|
75
|
+
# Get number of pages
|
|
76
|
+
num_pages = parser.number_of_pages(doc_key)
|
|
77
|
+
print("#-pages: ", num_pages)
|
|
78
|
+
|
|
79
|
+
failed = False
|
|
80
|
+
|
|
81
|
+
try:
|
|
82
|
+
# Parse page by page to minimize memory footprint
|
|
83
|
+
for page in range(0, num_pages):
|
|
84
|
+
json_doc = parser.parse_pdf_from_key_on_page(doc_key, page)
|
|
85
|
+
|
|
86
|
+
if "pages" not in json_doc: # page could not get parsed
|
|
87
|
+
print(f"ERROR: page {page} is not parsed ... ")
|
|
88
|
+
failed = True
|
|
89
|
+
else:
|
|
90
|
+
print(f"SUCCESS: page {page} is parsed ... ")
|
|
91
|
+
except Exception as e:
|
|
92
|
+
print(f"ERROR: page {page} is not parsed: {e}")
|
|
93
|
+
failed = True
|
|
94
|
+
|
|
95
|
+
# Unload the document
|
|
96
|
+
parser.unload_document(doc_key)
|
|
97
|
+
|
|
98
|
+
overview.append([doc_file, (not failed), num_pages])
|
|
99
|
+
|
|
100
|
+
print(tabulate(overview, headers=["filename", "success", "#-pages"]))
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
if __name__ == "__main__":
|
|
104
|
+
main()
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
%!PS-Adobe-3.0 Resource-CMap
|
|
2
|
+
%%DocumentNeededResources: ProcSet (CIDInit)
|
|
3
|
+
%%IncludeResource: ProcSet (CIDInit)
|
|
4
|
+
%%BeginResource: CMap (Identity)
|
|
5
|
+
%%Title: (Identity Adobe CNS1 0)
|
|
6
|
+
%%Version: 10.006
|
|
7
|
+
%%Copyright: -----------------------------------------------------------
|
|
8
|
+
%%Copyright: Copyright 1990-2019 Adobe. All rights reserved.
|
|
9
|
+
%%Copyright:
|
|
10
|
+
%%Copyright: Redistribution and use in source and binary forms, with or
|
|
11
|
+
%%Copyright: without modification, are permitted provided that the
|
|
12
|
+
%%Copyright: following conditions are met:
|
|
13
|
+
%%Copyright:
|
|
14
|
+
%%Copyright: Redistributions of source code must retain the above
|
|
15
|
+
%%Copyright: copyright notice, this list of conditions and the following
|
|
16
|
+
%%Copyright: disclaimer.
|
|
17
|
+
%%Copyright:
|
|
18
|
+
%%Copyright: Redistributions in binary form must reproduce the above
|
|
19
|
+
%%Copyright: copyright notice, this list of conditions and the following
|
|
20
|
+
%%Copyright: disclaimer in the documentation and/or other materials
|
|
21
|
+
%%Copyright: provided with the distribution.
|
|
22
|
+
%%Copyright:
|
|
23
|
+
%%Copyright: Neither the name of Adobe nor the names of its contributors
|
|
24
|
+
%%Copyright: may be used to endorse or promote products derived from
|
|
25
|
+
%%Copyright: this software without specific prior written permission.
|
|
26
|
+
%%Copyright:
|
|
27
|
+
%%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
|
|
28
|
+
%%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
|
29
|
+
%%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
30
|
+
%%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
31
|
+
%%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
|
32
|
+
%%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
33
|
+
%%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
34
|
+
%%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
35
|
+
%%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
36
|
+
%%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
37
|
+
%%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
38
|
+
%%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
39
|
+
%%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
40
|
+
%%Copyright: -----------------------------------------------------------
|
|
41
|
+
%%EndComments
|
|
42
|
+
|
|
43
|
+
/CIDInit /ProcSet findresource begin
|
|
44
|
+
|
|
45
|
+
12 dict begin
|
|
46
|
+
|
|
47
|
+
begincmap
|
|
48
|
+
|
|
49
|
+
/CIDSystemInfo 3 dict dup begin
|
|
50
|
+
/Registry (Adobe) def
|
|
51
|
+
/Ordering (CNS1) def
|
|
52
|
+
/Supplement 0 def
|
|
53
|
+
end def
|
|
54
|
+
|
|
55
|
+
/CMapName /Adobe-CNS1-0 def
|
|
56
|
+
/CMapVersion 10.006 def
|
|
57
|
+
/CMapType 1 def
|
|
58
|
+
|
|
59
|
+
/UIDOffset 960 def
|
|
60
|
+
/XUID [1 10 25394] def
|
|
61
|
+
|
|
62
|
+
/WMode 0 def
|
|
63
|
+
|
|
64
|
+
/CIDCount 14099 def
|
|
65
|
+
|
|
66
|
+
1 begincodespacerange
|
|
67
|
+
<0000> <37FF>
|
|
68
|
+
endcodespacerange
|
|
69
|
+
|
|
70
|
+
56 begincidrange
|
|
71
|
+
<0000> <00ff> 0
|
|
72
|
+
<0100> <01ff> 256
|
|
73
|
+
<0200> <02ff> 512
|
|
74
|
+
<0300> <03ff> 768
|
|
75
|
+
<0400> <04ff> 1024
|
|
76
|
+
<0500> <05ff> 1280
|
|
77
|
+
<0600> <06ff> 1536
|
|
78
|
+
<0700> <07ff> 1792
|
|
79
|
+
<0800> <08ff> 2048
|
|
80
|
+
<0900> <09ff> 2304
|
|
81
|
+
<0a00> <0aff> 2560
|
|
82
|
+
<0b00> <0bff> 2816
|
|
83
|
+
<0c00> <0cff> 3072
|
|
84
|
+
<0d00> <0dff> 3328
|
|
85
|
+
<0e00> <0eff> 3584
|
|
86
|
+
<0f00> <0fff> 3840
|
|
87
|
+
<1000> <10ff> 4096
|
|
88
|
+
<1100> <11ff> 4352
|
|
89
|
+
<1200> <12ff> 4608
|
|
90
|
+
<1300> <13ff> 4864
|
|
91
|
+
<1400> <14ff> 5120
|
|
92
|
+
<1500> <15ff> 5376
|
|
93
|
+
<1600> <16ff> 5632
|
|
94
|
+
<1700> <17ff> 5888
|
|
95
|
+
<1800> <18ff> 6144
|
|
96
|
+
<1900> <19ff> 6400
|
|
97
|
+
<1a00> <1aff> 6656
|
|
98
|
+
<1b00> <1bff> 6912
|
|
99
|
+
<1c00> <1cff> 7168
|
|
100
|
+
<1d00> <1dff> 7424
|
|
101
|
+
<1e00> <1eff> 7680
|
|
102
|
+
<1f00> <1fff> 7936
|
|
103
|
+
<2000> <20ff> 8192
|
|
104
|
+
<2100> <21ff> 8448
|
|
105
|
+
<2200> <22ff> 8704
|
|
106
|
+
<2300> <23ff> 8960
|
|
107
|
+
<2400> <24ff> 9216
|
|
108
|
+
<2500> <25ff> 9472
|
|
109
|
+
<2600> <26ff> 9728
|
|
110
|
+
<2700> <27ff> 9984
|
|
111
|
+
<2800> <28ff> 10240
|
|
112
|
+
<2900> <29ff> 10496
|
|
113
|
+
<2a00> <2aff> 10752
|
|
114
|
+
<2b00> <2bff> 11008
|
|
115
|
+
<2c00> <2cff> 11264
|
|
116
|
+
<2d00> <2dff> 11520
|
|
117
|
+
<2e00> <2eff> 11776
|
|
118
|
+
<2f00> <2fff> 12032
|
|
119
|
+
<3000> <30ff> 12288
|
|
120
|
+
<3100> <31ff> 12544
|
|
121
|
+
<3200> <32ff> 12800
|
|
122
|
+
<3300> <33ff> 13056
|
|
123
|
+
<3400> <34ff> 13312
|
|
124
|
+
<3500> <35ff> 13568
|
|
125
|
+
<3600> <36ff> 13824
|
|
126
|
+
<3700> <3712> 14080
|
|
127
|
+
endcidrange
|
|
128
|
+
endcmap
|
|
129
|
+
CMapName currentdict /CMap defineresource pop
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
%%EndResource
|
|
134
|
+
%%EOF
|