DEV Community

Cover image for ๐Ÿ“‘ Extract PDF Pages: Pull out the pages you need โ€” or pull out the text
Tomaz
Tomaz

Posted on Originally published at tooladda.online

๐Ÿ“‘ Extract PDF Pages: Pull out the pages you need โ€” or pull out the text

โšก 10-second version

Two different jobs, one tool at tooladda.online/pdf-extract.html: extract pages into a smaller PDF, or extract the text as plain text you can paste anywhere.

โ— Important

Extraction runs in your browser. Useful when the document is a contract or a report you have no business uploading to a free web service.


๐Ÿง  "Extract" means two different things โ€” know which one you need

You want Use You get Text still selectable?
Pages 12โ€“18 as their own PDF Page extraction A new PDF, byte-identical pages โœ… Yes โ€” pages are copied, not re-rendered
The words, to paste into a doc Text extraction Plain text n/a โ€” it is text
A picture of the pages PDF to Images PNG/JPEG โŒ No

Page extraction here is lossless: the page objects are copied into a new document, so fonts, images and vector art come across untouched and the file size stays proportional. Nothing is rasterised.

Why text extraction sometimes returns nothing

This catches everyone once. There are two kinds of PDF:

  • Digital PDF โ€” exported from Word, a browser, or a report generator. It contains a real text layer. Extraction works perfectly.
  • Scanned PDF โ€” a photo or scan of paper. There is no text layer at all, just an image of words. Extraction returns empty, and that's not a bug โ€” there is genuinely nothing there to extract.

Five-second test: open the PDF, Ctrl+A, Ctrl+C, paste into Notepad. Blank means it's a scan, and you need OCR rather than extraction.

Two more things that surprise people

Symptom Cause
Text comes out in a jumbled order Multi-column layouts. A PDF stores text in drawing order, not reading order, so columns interleave.
Ligatures come out mangled (๏ฌ, ๏ฌ‚) The font mapped a glyph pair to one character. Search-and-replace them after pasting.
Table structure disappears PDFs have no concept of a table โ€” just text at coordinates. The alignment was visual, not structural.

๐Ÿงญ How it works

Diagram


โœจ What's inside

### ๐Ÿชถ Lossless page extraction Pages are copied, not re-rendered. Quality, fonts and selectable text all survive, and a 40-page extract from a 400-page file takes a second. ### ๐Ÿ“‹ Text extraction too Get the words out without a Word conversion round-trip that mangles the formatting anyway.
### ๐ŸŽฏ Flexible ranges `1-3, 9, 20-` in one go. Both ends of a range are inclusive, and the thumbnails let you confirm before you commit. ### ๐Ÿ”’ Nothing leaves the tab No upload endpoint exists, so a confidential document stays confidential by construction.

๐Ÿ› ๏ธ Real jobs

Situation What you do
๐Ÿ“ค Portal wants only the relevant section Extract those pages instead of uploading 300.
๐Ÿ“‹ Quoting from a report Pull the text out and paste it without retyping.
๐Ÿ”’ Sharing part of a document Send pages 4โ€“9 and nothing else.
๐Ÿ“š One chapter from an ebook PDF Extract to its own file for reading on a tablet.
๐Ÿงพ One invoice from a batch Pull the single page you need to forward.
๐Ÿ” Searching a long PDF offline Extract the text and grep it.

๐Ÿ“– Four steps

1.  Open   โ†’  tooladda.online/pdf-extract.html
2.  Drop   โ†’  your PDF
3.  Choose โ†’  page range (e.g. 12-18, 25) or text extraction
4.  Verify โ†’  thumbnails / the extracted text, then download
Enter fullscreen mode Exit fullscreen mode

โ–ถ Extract now โ€” tooladda.online/pdf-extract.html

๐Ÿ’ก Tip

Check the physical page positions in the thumbnails, not the numbers printed on the page. A cover plus roman-numeral front matter means "page 1" often sits at position 4, and that's how people extract the wrong seven pages.


โ“ FAQ

Is it free?

Free, no watermark, no signup, no page limit beyond your device's memory.

Does extraction reduce quality?

No. Page extraction copies the original page objects โ€” it's lossless.

Text extraction returned nothing. Why?

Your PDF is a scan with no text layer. Test it by trying to select text in a viewer โ€” if you can't, there's nothing to extract and you need OCR.

Why is the extracted text out of order?

Multi-column layouts. PDFs store text in drawing order rather than reading order, so columns interleave. Single-column documents extract cleanly.

Is 12-18 seven pages?

Yes โ€” both ends are inclusive.

Extract vs split โ€” what's the difference?

Extract pulls a selection into one new file. Split is built for breaking a document into many files โ€” every page, or every N pages.


๐Ÿ”ฌ Under the hood

  • Client-side page-object copying, so extraction is lossless and fast; no rasterisation step.
  • Text extraction reads the PDF's own text layer and reports honestly when there isn't one.
  • No upload endpoint; works offline once loaded.

Originally published on ToolAdda, where Extract PDF Pages runs free in your browser โ€” nothing is uploaded, nothing leaves your device.

Top comments (0)