Skip to main content

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

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.

Release history Release notifications | RSS feed

This release

0.5.2 This release

1 file

0.5.1

1 file

0.5.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page