Microdeck.tools 100% In-Browser

Local PDF Text & Page Extractor

New

Pull clean readable text out of contracts, research papers, invoices, and manuals without uploading confidential PDFs to online OCR/conversion clouds. Powered locally by `pdfjs-dist`, choose exact page ranges (`1-3, 5`), preserve vertical line baselines, and export as Plain Text (`.txt`) or Markdown (`.md`).

100% In-Browser No Server Storage Instant Results

Drop or select any text-based PDF

Extracts text coordinates locally via pdfjs-dist with zero uploads.

Did this tool save you time? Help keep Microdeck free and maintained. Completely optional · From $3.

How It Works Under the Hood

Loads your PDF byte buffer into a dedicated `pdfjs-dist` Web Worker, parses the page selector expression (`all` or ranges like `1-4, 7`), reads text items with baseline `(x, y)` coordinates, groups items along shared horizontal lines (`yTolerance = 3.5`), sorts left-to-right, and formats clean Plain Text or Markdown output.

Step-by-Step Instructions

1

Choose your PDF file (processed strictly in browser memory).

2

Optionally enter a page range (`all` or `1-3, 5`) and click Re-Extract.

3

Pick `Plain Text (.txt)` or `Markdown (.md)` and toggle Page Headers if desired.

4

Copy extracted text to clipboard or export directly to `.txt` / `.md`.

Key Features & Performance

  • Line-baseline geometry reconstruction prevents scrambled multi-word column fragments
  • Flexible page selector supports single pages and ranges (`1-3, 6, 9-12`)
  • Exports directly to Plain Text (`.txt`) or Markdown (`## Page N` sections)
  • Reports extracted page count and total word count immediately
  • Zero server transfer: built for legal agreements, medical PDFs, and financial filings

Methodology, Formulas & Technical Standards

Text tokens are clustered by baseline `y` proximity within `3.5` PDF user units and sorted horizontally by `transform[4]` (`x`) before collapsing internal whitespace cleanly.

Common Real-World Use Cases

  • Pulling clauses out of NDAs or vendor contracts to analyze or summarize locally
  • Extracting specific chapters from multi-hundred-page technical PDF manuals
  • Converting searchable invoice or receipt PDFs into text for bookkeeping paste-in
  • Preparing research excerpts in Markdown format for note apps like Obsidian or Notion

Worked Examples & Edge Cases

Selective Page Range Extraction

Input
Pages: `1-2, 5` on a 12-page contract
Output
Extracts only pages 1, 2, and 5 with clear page dividers

Avoids copying boilerplate appendices when you only need key clauses.

Scanned PDF Detection Note

Input
Image-only scanned document page
Output
_No extractable text layer on this page._

If a PDF lacks an embedded text layer, switch to our Batch OCR tool.

Limitations, Scope & Accuracy Notes

  • • Only extracts embedded digital PDF text layers — scanned image-only PDFs without OCR yield empty text (use Batch OCR for image scans).
  • • Complex multi-column academic layouts may merge adjacent columns on the same baseline if vertical spacing aligns tightly.

Local Browser Processing & Privacy

Traditional web converters upload your documents, snippets, or media files to remote servers. Local PDF Text & Page Extractor runs inside your browser tab:

Processed in This Tab

Your input text and files are processed locally without uploading payloads to a processing server.

No Tool Payload Logging

Microdeck does not log or store the files or inputs you paste into tool workspaces (normal static hosting/CDN requests still load page assets).

Tab Memory Lifecycle

Working outputs stay in your browser tab and are released when you reset the tool or close the tab.

Frequently Asked Questions

Why did a scanned PDF extract blank text?

Scanned PDFs store flat pictures of pages rather than selectable character glyphs. Use Microdeck's offline Batch OCR tool to recognize scanned PDF pages.

Does this upload my confidential PDF to Cloudflare or external APIs?

No. `pdfjs-dist` parses bytes inside an isolated local browser worker.

Can I extract just specific pages instead of the whole PDF?

Yes. Enter expressions like `1-3, 5` in the Pages input and click Re-Extract.

What is the difference between `.txt` and `.md` export?

`.txt` uses `=== Page N ===` banners, while `.md` adds Markdown `## Page N` headers and blank-page placeholders.

Explore Related Micro-Tools

Support Microdeck

Completely optional · From $3 · No account required

Choose an amount (USD):Selected:$5

Minimum support amount is $3 USD.

Completely optional · From $3 · Checkout opens on Gumroad.