惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

U
Unit 42
博客园 - Franky
T
Tailwind CSS Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
月光博客
月光博客
人人都是产品经理
人人都是产品经理
雷峰网
雷峰网
Hugging Face - Blog
Hugging Face - Blog
有赞技术团队
有赞技术团队
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
阮一峰的网络日志
阮一峰的网络日志
C
Check Point Blog
爱范儿
爱范儿
T
The Blog of Author Tim Ferriss
aimingoo的专栏
aimingoo的专栏
Stack Overflow Blog
Stack Overflow Blog
博客园 - 聂微东
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
L
LangChain Blog
云风的 BLOG
云风的 BLOG
MyScale Blog
MyScale Blog
Microsoft Security Blog
Microsoft Security Blog
The Cloudflare Blog
博客园 - 三生石上(FineUI控件)

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
I've built a open source PDF-To-Excel-Converter
Tsvetan Gerginov · 2026-06-13 · via DEV Community

Tsvetan Gerginov

Github Repository

Hi community,

I've built a open source PDF to Excel Converter and let me tell you why!

We've all been there: someone sends you a 40-page PDF report and asks for "the numbers in a spreadsheet by Friday." You can copy-paste cell by cell, pay for a SaaS converter that uploads your (possibly confidential) data to who-knows-where, or... build your own tool.

What it does

The core idea is simple: upload a PDF, pick an extraction mode, download an .xlsx. The interesting part is in the modes, because "convert a PDF" means different things depending on the document:

1. All Text + Tables — extracts everything (paragraphs, headings, tables) and consolidates it into a single worksheet. Useful when you need the full content of a document in a structured, searchable format.

2. Tables Only — ignores the prose and hunts down tabular data specifically. Each detected table lands in its own sheet in the workbook. This is the mode you want for financial reports, invoices, or anything where the tables are the data.

That second mode is where most converters fall short — they either flatten tables into mush or miss them entirely. Splitting each table into a separate sheet keeps the structure intact and makes downstream work (pivot tables, formulas, imports) actually possible.

The stack

Nothing exotic, and that's deliberate:

  • Python + Flask for the web app — file upload, mode selection, conversion, download. One form, one job.
  • pdfplumber for text and layout-aware extraction
  • tabula-py for table detection and extraction
  • A separate desktop version in the repo for people who don't want to run a server at all

Why two extraction libraries? Because PDFs are chaos. A PDF is fundamentally a visual format — it knows where to draw characters, not what a "table" is. pdfplumber is excellent at layout-aware text extraction, while tabula's table detection handles structured grids better. Using each for what it does best gives much more reliable output than forcing one library to do everything.

Why local-first matters

Most "free PDF converter" sites are upload services. That's fine for a recipe PDF — less fine for contracts, bank statements, or client data. This tool processes everything locally:

git clone https://github.com/TsvetanG2/PDF-To-Excel-Converter.git
cd pdf-to-excel-converter
pip install -r requirements.txt
python pdftoexcel.py

Then open http://localhost:5000, upload, convert, done. Your files never leave your machine.

Honest limitations

I'm not going to pretend this beats commercial tools on every PDF. Scanned documents (images of text) need OCR, which isn't in scope here — this works on PDFs with an actual text layer. And table detection on documents with creative, merged-cell layouts is a hard problem for every tool in this space, including this one. For typical reports, exports, and structured documents, it does the job well.