Multilingual PDF to Text.
Install Package from Pypi
- Install it using pip.
pip install multilingual-pdf2text
The library uses Tesseract which can be installed by following instructions:
Example Usage
- Use it in your code
from multilingual_pdf2text.pdf2text import PDF2Text
from multilingual_pdf2text.models.document_model.document import Document
import logging
logging.basicConfig(level=logging.INFO)
def main():
## create document for extraction with configurations
pdf_document = Document(
document_path='/Users/shahrukh/Desktop/multilingual-pdf2text/example/example.pdf',
language='spa'
)
pdf2text = PDF2Text(document=pdf_document)
content = pdf2text.extract()
print(content)
if __name__ == "__main__":
main()
Tesseract supports the following languages: Code Language
- afr Afrikaans
- amh Amharic
- ara Arabic
- asm Assamese
- aze Azerbaijani
- aze_cyrl Azerbaijani - Cyrillic aze_
- bel Belarusian
- ben Bengali
- bod Tibetan
- bos Bosnian
- bul Bulgarian
- cat Catalan; Valencian
- ceb Cebuano
- ces Czech
- chi_sim Chinese - Simplified chi_
- chi_tra Chinese - Traditional chi_
- chr Cherokee
- cym Welsh
- dan Danish
- deu German
- dzo Dzongkha
- ell Greek, Modern (1453-)
- eng English
- enm English, Middle (1100-1500)
- epo Esperanto
- est Estonian
- eus Basque
- fas Persian
- fin Finnish
- fra French
- frk German Fraktur
- frm French, Middle (ca. 1400-1600)
- gle Irish
- glg Galician
- grc Greek, Ancient (-1453)
- guj Gujarati
- hat Haitian; Haitian Creole
- heb Hebrew
- hin Hindi
- hrv Croatian
- hun Hungarian
- iku Inuktitut
- ind Indonesian
- isl Icelandic
- ita Italian
- ita_old Italian - Old ita_
- jav Javanese
- jpn Japanese
- kan Kannada
- kat Georgian
- kat_old Georgian - Old kat_
- kaz Kazakh
- khm Central Khmer
- kir Kirghiz; Kyrgyz
- kor Korean
- kur Kurdish
- lao Lao
- lat Latin
- lav Latvian
- lit Lithuanian
- mal Malayalam
- mar Marathi
- mkd Macedonian
- mlt Maltese
- msa Malay
- mya Burmese
- nep Nepali
- nld Dutch; Flemish
- nor Norwegian
- ori Oriya
- pan Panjabi; Punjabi
- pol Polish
- por Portuguese
- pus Pushto; Pashto
- ron Romanian; Moldavian; Moldovan
- rus Russian
- san Sanskrit
- sin Sinhala; Sinhalese
- slk Slovak
- slv Slovenian
- spa Spanish; Castilian
- spa_old Spanish; Castilian - Old spa_
- sqi Albanian
- srp Serbian
- srp_latn Serbian - Latin srp_
- swa Swahili
- swe Swedish
- syr Syriac
- tam Tamil
- tel Telugu
- tgk Tajik
- tgl Tagalog
- tha Thai
- tir Tigrinya
- tur Turkish
- uig Uighur; Uyghur
- ukr Ukrainian
- urd Urdu
- uzb Uzbek
- uzb_cyrl Uzbek - Cyrillic uzb_
- vie Vietnamese
- yid Yiddish
Metadata
Release files for multilingual-pdf2text 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| multilingual-pdf2text-1.1.0.tar.gz | 6.8 kB | Without provenance | Details for multilingual-pdf2text-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| multilingual_pdf2text-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for multilingual_pdf2text-1.1.0-py3-none-any.whl |
Total release size: 21.8 kB
Release files / multilingual-pdf2text-1.1.0.tar.gz
| Download URL | multilingual-pdf2text-1.1.0.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
113719f907007193655e618f2bdc68643153cef89fc6455e4341f160188988e1
|
|
BLAKE2b-256 checksum How to use checksums |
664b1ec48de7cc40b2ba3962f0f425e0eacfe9b2781d32214acc492323fc9756
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2
|
Release files / multilingual_pdf2text-1.1.0-py3-none-any.whl
| Download URL | multilingual_pdf2text-1.1.0-py3-none-any.whl |
|---|---|
| Size | 15.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4210156d47a0cf380d6255a91f34d2b27ac52e31b173f0d77584334da176374a
|
|
BLAKE2b-256 checksum How to use checksums |
83c7566c5bc0d59464bc4df5b1efbec82a018aab3ae7c47ce63a654158ee677c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2
|
Security for multilingual-pdf2text 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.