Skip to main content

Extracting text and data from PDFs

Project description

Python 3.6, 3.7, 3.8, 3.9 Downloads Total Downloads per Month

{pdfdata}

Python package for extracting text and data from PDFs.

Installation

pip install pdfdata

Usage

from pdfdata import *
from pprint import pprint


# parse pdf as dictionary
pdf_parsed = parse_pdf('pdfs/0641-20.pdf')
res        = pdf_doc_extract_span_list(pdf_parsed)

pprint(res, depth=3)



# parse pdf as list of spans
pdf_parsed = parse_pdf('pdfs/0641-20.pdf')
res        = pdf_doc_extract_span_df(pdf_parsed)

pprint(res[0])




# transform pdf text to jsonnl
pdf_text_to_jsonnl('pdfs/0641-20.pdf', '0641-20.jsonnl')

DevNotes

build

python -m build

pypi test upload

python -m twine upload --repository testpypi dist/* --skip-existing

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

pdfdata-0.1.3.2.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

pdfdata-0.1.3.2-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file pdfdata-0.1.3.2.tar.gz.

File metadata

  • Download URL: pdfdata-0.1.3.2.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for pdfdata-0.1.3.2.tar.gz
Algorithm Hash digest
SHA256 eb3aac3776ee728085cb724ffbd1bf86d3cfbb7fc0585fcc4dacc171fa637fb0
MD5 c8cf19b647602794cbeca3ea529062c3
BLAKE2b-256 a44dfc04a218c76963a1cc0a89ea527f224e16fc9fa5a2f69f5843ed232e26c0

See more details on using hashes here.

File details

Details for the file pdfdata-0.1.3.2-py3-none-any.whl.

File metadata

  • Download URL: pdfdata-0.1.3.2-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for pdfdata-0.1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d31532d7bf22c892af14cc81c9dfb88635e773d0b01088ed4d99413594bc7640
MD5 f07d0001c90bacaa335414a44c3e72ac
BLAKE2b-256 7026b2f78af285146c7be2bd584265a345dff2ab257e49e26ce1de1ad3e4ed13

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