Skip to main content

PDF parser and analyzer

Project description

pdfminer.rtl

This is a fork of pdfminer.six that attempts to add RTL support with python-bidi. This version is experimental and probably buggy. Please don't rely on it for critical projects.

Check out the full original documentation on Read the Docs.

Features

  • (Added RTL support)
  • Written entirely in Python.
  • Parse, analyze, and convert PDF documents.
  • Extract content as text, images, html or hOCR.
  • PDF-1.7 specification support. (well, almost).
  • CJK languages and vertical writing scripts support.
  • Various font types (Type1, TrueType, Type3, and CID) support.
  • Support for extracting images (JPG, JBIG2, Bitmaps).
  • Support for various compressions (ASCIIHexDecode, ASCII85Decode, LZWDecode, FlateDecode, RunLengthDecode, CCITTFaxDecode)
  • Support for RC4 and AES encryption.
  • Support for AcroForm interactive form extraction.
  • Table of contents extraction.
  • Tagged contents extraction.
  • Automatic layout analysis.

How to use

  • Install Python 3.8 or newer.

  • Install pdfminer.rtl.

    pip install pdfminer.rtl

  • (Optionally) install extra dependencies for extracting images.

    pip install 'pdfminer.rtl[image]'

  • Use the command-line interface to extract text from pdf.

    pdf2txt.py example.pdf

  • Or use it with Python.

from pdfminer.high_level import extract_text

text = extract_text("example.pdf")
print(text)

Acknowledgement

This repository includes code from pyHanko ; the original license has been included here and to all the other contirbutors of the original project see here

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

pdfminer.rtl-1.0.1.tar.gz (7.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pdfminer.rtl-1.0.1-py3-none-any.whl (5.6 MB view details)

Uploaded Python 3

File details

Details for the file pdfminer.rtl-1.0.1.tar.gz.

File metadata

  • Download URL: pdfminer.rtl-1.0.1.tar.gz
  • Upload date:
  • Size: 7.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for pdfminer.rtl-1.0.1.tar.gz
Algorithm Hash digest
SHA256 6733df6c661d1d34054142bdb8885a9d499b3afecc504433b761ebe7d4828923
MD5 e0b419b3df7809ab002680de99f1e317
BLAKE2b-256 72e94511bbe1663965dedcad9474214e3c646030abc025835c46c17306fc6baa

See more details on using hashes here.

File details

Details for the file pdfminer.rtl-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pdfminer.rtl-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for pdfminer.rtl-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf493bb81ee21d06d3e42d59e632c7bbfbbeb76138e6d57539450f6d5d40b81f
MD5 775b936b674a2efa376e4bf50489ee35
BLAKE2b-256 6fe8ec13b13fb448dd1ee75d81b0f8950b409f93a501afc9e2f33de7ca331b92

See more details on using hashes here.

Supported by

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