DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to pull just the tables out of a PDF with Marker

Use the TableConverter to extract tables only, in a page range you pick.

Short answer: Install with pip install marker-pdf; then run marker_single /path/to/file.pdf on your report; add --converter_cls with Marker.converters.table.TableConverter to extract tables only. All steps.

  • Data and analytics
  • Intermediate
  • 20 minutes
  • From the README
  • Claude Code
  • Codex
  • Cursor
  • Gemini CLI

Who it is forAn analyst who wants the data tables from a report and not the prose.

The problemRetyping tables from a PDF is slow and error prone.

The outcomeTable content converted to markdown for the pages you selected.

What you need first

  • Python 3.10+ and PyTorch
  • pip
  • A GPU is best, CPU and Apple Silicon also work in fast mode

Steps

  1. Install with pip install marker-pdf
  2. Run marker_single /path/to/file.pdf on your report
  3. Add --converter_cls with Marker.converters.table.TableConverter to extract tables only
  4. Add --page_range to limit which pages are processed
  5. Review the output and paste tables into your spreadsheet

Prompt for your agent

With datalab-to/marker, run `marker_single /path/to/file.pdf --converter_cls marker.converters.table.TableConverter --page_range "0,5-10,20"` on <my report PDF> and turn each extracted table into a CSV.

Caveat. Check numbers against the source; table reconstruction can fall back to a model and may err.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for datalab-to/marker and "Pull just the tables out of a PDF"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer