Skip to main content

Tool to extract and store sentence embeddings to a fast and scalable vector db

Project description

pdf_ocr_txt

Applies OCR to a PDF file and extracts its content to a TXT file.

Assumes tesseract and poplertools installed!

USAGE

$ python3
>>>from pdf_ocr_txt.main import pdf_to_text
>>>pdf_to_text('my_file.pdf','my_output_directory')

See result in my_output_directory/my_file.pdf.txt .

Enjoy, Paul Tarau May 2024

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pdf_ocr_txt-0.5.2.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file pdf_ocr_txt-0.5.2.tar.gz.

File metadata

  • Download URL: pdf_ocr_txt-0.5.2.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for pdf_ocr_txt-0.5.2.tar.gz
Algorithm Hash digest
SHA256 34e0aaa76db4c163bb5d577b151feb392ddaeda2e4d519b4f881fc2492ed80da
MD5 77f7469657f46de15544a22f949360b2
BLAKE2b-256 0c84fca7fa59b3ba417d1abf13c1bfe8bcb165c956d44a171d117d86596293e5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page