table-extractor

Extract tables from PDFs and images into CSV, Excel, and JSON.

86|18|Updated Dec 14, 2025
One-click install
npx skills add https://github.com/dkyazzentwatwa/chatgpt-skills --skill table-extractor-dkyazzentwatwa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: table-extractor
Source: https://github.com/dkyazzentwatwa/chatgpt-skills/tree/main/table-extractor
Command: npx skills add https://github.com/dkyazzentwatwa/chatgpt-skills --skill table-extractor-dkyazzentwatwa

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pdfplumber, pillow, pandas, pytesseract, opencv-python, openpyxl, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the extraction of tabular data from PDF documents and images, saving significant manual effort and reducing errors.

Core Features & Use Cases

  • PDF Table Extraction: Extracts tables from digital PDFs, including multi-page documents.
  • Image Table Extraction (OCR): Uses Optical Character Recognition to extract tables from scanned documents and images.
  • Multiple Formats: Supports exporting extracted tables to CSV, Excel, and JSON.
  • Use Case: Automatically convert all tables from a scanned financial report into an Excel spreadsheet for further analysis.

Quick Start

Use the table extractor skill to extract all tables from the document 'report.pdf' and save them as CSV files.

Frequently Asked Questions about table-extractor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract tables from a scanned PDF document?

To extract tables from a scanned PDF, this Skill uses Optical Character Recognition via pytesseract to read image-based content. It processes scanned documents and images, converting complex table structures into structured data formats like CSV, Excel, and JSON.

Can I extract multiple tables from a multi-page PDF into Excel?

Yes, you can extract tables from multi-page PDFs into Excel. The Skill handles multi-page documents using pdfplumber and exports the extracted tabular data directly into structured formats like Excel spreadsheets using openpyxl and pandas.

What is the best way to convert PDF tables to CSV without losing formatting?

The best way to convert PDF tables to CSV is using a tool that parses digital PDFs directly. This Skill utilizes pdfplumber to detect and extract complex table structures from digital documents, saving the output accurately as CSV files.

Does this table extraction method work with both digital PDFs and images?

Yes, this table extraction method works with both digital PDFs and images. It uses pdfplumber for digital text extraction and pytesseract with opencv-python for OCR on scanned documents, ensuring broad format compatibility.

What formats can I export extracted PDF tables to?

You can export extracted PDF tables to CSV, Excel, and JSON formats. The Skill utilizes pandas to structure the extracted data and openpyxl to facilitate the export process into these widely used data formats.

Why are my PDF table extraction results misaligned when using OCR?

Misaligned PDF table extraction results from OCR often occur due to complex table structures in scanned documents. This Skill mitigates parsing errors by using opencv-python for image processing alongside pytesseract to improve structural recognition accuracy.