Skip to main content

A Python package to extract tables from PDF to excel

Project description

PyPI version PyPI - Python Version GitHub Libraries.io SourceRank PyPI - Wheel PyPI - Downloads Libraries.io dependency status for latest release

Automated Table Extractor

auto-table-extract is a Python package to extract tables from PDF documents.
This package helps to extract all the table contents (tables can be bordered, borderless or partially bordered) from the searchable and scanned pdf document and dumps it into an excel sheet.

Main features

  1. Can extract tables from bordered tables, partially bordered tables (missing column lines / missing row lines) and also from fully borderless tables.
  2. Extracts only the text inside the table. It won't extract the paragraphs, matrix, bar-charts or any text outside table.
  3. Creates an Excel file having the extracted contents of the table from PDF.
  4. Can be used for both searchable(contents can be selected) as well as scanned documents.
  5. Works for any orientation of the document.

Requirements

  1. pdfminer
  2. scikit-learn
  3. pandas
  4. ocrmypdf
  5. Numpy
  6. PyPDF2

Installation

  1. Install Tesseract OCR
    Download Tesseract 32 bit
    Download Tesseract 64 bit

  2. Install ghostscript
    Download ghostscript

Usage

from auto_table_extract import auto_table_extract 
auto_table_extract("input_file") #input_file should be PDF
#The Excel file will be saved to your Desktop

Developed by:

  1. Rohit Sahoo (rohitsahoo741@gmail.com)
  2. Chinmay Kathale (cskathale@gmail.com)
  3. Milind Kubal (kubalmilind@gmail.com)

License

Copyright 2020 Rohit-Sahoo

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for auto-table-extract, version 2.0
Filename, size File type Python version Upload date Hashes
Filename, size auto_table_extract-2.0-py3-none-any.whl (14.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size auto-table-extract-2.0.tar.gz (7.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page