Skip to main content

Extracts data from PDF files and saves it to Excel files.

Project description

📄 pdfsp


pdfsp is a Python package that extracts tables from PDF files and saves them to Excel. It also provides a simple Streamlit app for interactive viewing of the extracted data.


🚀 Features

  • Extracts tabular data from PDFs using pdfplumber
  • Converts tables into pandas DataFrames
  • Saves output as .xlsx Excel files using openpyxl
  • Ensures column names are unique to prevent issues
  • Visualizes DataFrames with streamlit

📦 Installation

Make sure you're using Python 3.10 or newer, then install with:

pip install pdfsp
from pdfsp import extract_tables

source_folder = "."
output_folder = "output"

extract_tables(source_folder, output_folder )

From console

# all tables from all pdf files in the current folder to current folder 
pdfsp . . 
# all tables from all pdf files in someFolder to current SomeOutFolder 
pdfsp someFolder SomeOutFolder 


# all tables of some.pdf to the current folder 
pdfsp some.pdf .

# all tables of some.pdf to the toThisFolder folder 
pdfsp some.pdf toThisFolder

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

pdfsp-0.1.2.tar.gz (65.7 kB view details)

Uploaded Source

Built Distribution

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

pdfsp-0.1.2-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file pdfsp-0.1.2.tar.gz.

File metadata

  • Download URL: pdfsp-0.1.2.tar.gz
  • Upload date:
  • Size: 65.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for pdfsp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4ca8b7e5267a7eaf7023716b10b4e86b3bc3590201aee69d5f8c86e6fb91db0e
MD5 f940f6570c8fc9924831bda5dbdae4b4
BLAKE2b-256 cdb1542ef3fa0d37e979baa6ee6317acec049e655e7c1699dfcb0dae7598b185

See more details on using hashes here.

File details

Details for the file pdfsp-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pdfsp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for pdfsp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2f864998f20656cdae1f0212233a2655a5cbff5b292e7d321721a303ac502702
MD5 4f9470358a9d7600565b03d14b75b194
BLAKE2b-256 d51a55fa054bba4abdb1d0ae753d935885437923e94aae76cb21a5d4fe403de9

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