Go to file
zacc806 ec5b4ea6ee Initial commit 2023-08-07 18:10:10 +06:00
.github Initial commit 2023-08-07 18:10:10 +06:00
cmaprsrc Initial commit 2023-08-07 18:10:10 +06:00
docs Initial commit 2023-08-07 18:10:10 +06:00
pdfminer Initial commit 2023-08-07 18:10:10 +06:00
samples Initial commit 2023-08-07 18:10:10 +06:00
tests Initial commit 2023-08-07 18:10:10 +06:00
tools Initial commit 2023-08-07 18:10:10 +06:00
venv Initial commit 2023-08-07 18:10:10 +06:00
.flake8 Initial commit 2023-08-07 18:10:10 +06:00
.gitignore Initial commit 2023-08-07 18:10:10 +06:00
CHANGELOG.md Initial commit 2023-08-07 18:10:10 +06:00
CONTRIBUTING.md Initial commit 2023-08-07 18:10:10 +06:00
LICENSE Initial commit 2023-08-07 18:10:10 +06:00
MANIFEST.in Initial commit 2023-08-07 18:10:10 +06:00
Makefile Initial commit 2023-08-07 18:10:10 +06:00
README.md Initial commit 2023-08-07 18:10:10 +06:00
mypy.ini Initial commit 2023-08-07 18:10:10 +06:00
noxfile.py Initial commit 2023-08-07 18:10:10 +06:00
requirements.txt Initial commit 2023-08-07 18:10:10 +06:00
setup.py Initial commit 2023-08-07 18:10:10 +06:00
some.py Initial commit 2023-08-07 18:10:10 +06:00
Запрос № 01-7.1_654 от 25.07.2023 (BTS).pdf Initial commit 2023-08-07 18:10:10 +06:00
Запрос № 01-7.1_654 от 25.07.2023 (BTS).pdf:Zone.Identifier Initial commit 2023-08-07 18:10:10 +06:00
Исх. № 0145-07-23 от 13.07.2023г. битум ГПК.pdf Initial commit 2023-08-07 18:10:10 +06:00
Исх. № 0145-07-23 от 13.07.2023г. битум ГПК.pdf:Zone.Identifier Initial commit 2023-08-07 18:10:10 +06:00
Исх_№_0145_07_23_от_13_07_2023г_ДТ_Бенкала.pdf Initial commit 2023-08-07 18:10:10 +06:00
Исх_№_0145_07_23_от_13_07_2023г_ДТ_Бенкала.pdf:Zone.Identifier Initial commit 2023-08-07 18:10:10 +06:00

README.md

pdfminer.six

Continuous integration PyPI version gitter

We fathom PDF

Pdfminer.six is a community maintained fork of the original PDFMiner. It is a tool for extracting information from PDF documents. It focuses on getting and analyzing text data. Pdfminer.six extracts the text from a page directly from the sourcecode of the PDF. It can also be used to get the exact location, font or color of the text.

It is built in a modular way such that each component of pdfminer.six can be replaced easily. You can implement your own interpreter or rendering device that uses the power of pdfminer.six for other purposes than text analysis.

Check out the full documentation on Read the Docs.

Features

  • 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.6 or newer.

  • Install pdfminer.six.

    pip install pdfminer.six

  • (Optionally) install extra dependencies for extracting images.

    pip install 'pdfminer.six[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)

Contributing

Be sure to read the contribution guidelines.

Acknowledgement

This repository includes code from pyHanko ; the original license has been included here.