A focused PDF text workflow
This tool extracts the text layer that a PDF exposes; it does not run OCR on scanned images. For a scan with no selectable text, the result may be empty even though the page looks full.
- Use All pages for a complete plain-text copy.
- Use Selected pages when you only need a few sections.
- Clear the workspace when you are done if you are using a shared device.
What happens in the page
Text is read through PDF.js: the file is parsed once with getDocument(), and for every page you selected the tool calls getTextContent() and joins the returned items, inserting a line break wherever the PDF marks an end-of-line and a space between runs that continue on the same line. Pages are separated by a --- Page N --- heading so you can see where the extraction jumped, and the whole result lands in the textarea, ready to copy to the clipboard or download as a plain .txt file named after the source document. Switching to selected-page mode reveals a checkbox per page, which is the quickest way to pull just a table of contents, an invoice body or one chapter out of a long report. The small preview above the output always renders page 1 to a canvas so you can confirm at a glance what kind of document you are dealing with before running anything.
Where it breaks down
Extraction only reads a text layer that already exists. A scanned page has none, so the output is empty even though the page looks full of words — there is no OCR here, and the status line tells you when nothing was found. Reading order comes from the PDF's internal item order, so multi-column layouts and tables can interleave, and hyphenated line breaks stay hyphenated. Ligatures, custom encodings and symbol fonts occasionally produce stray characters. Very large documents are slow because every page is parsed in the tab, page selection applies per page, and the output is UTF-8 text with no formatting, bold or italic information.
Privacy: no data leaves this tab
The document is parsed by PDF.js inside this tab from an in-memory byte array; the extracted text never leaves your machine either, since there is no server to send it to. PDF.js and its worker are the only external download, fetched once when you first open a file.
Frequently asked questions
Why is the extracted text empty?
Because the PDF has no text layer — it is a scan or an image export. You can confirm it in the page-1 preview: if the words are pixels, nothing can be selected. Use the PDF-to-image tool and run the images through OCR separately.
Can it keep the original layout, columns or tables?
No. You get a plain text stream in the PDF's internal reading order, which is usually top-to-bottom and left-to-right but can interleave two-column pages. Numbers and headings are preserved; spacing, tables and font styling are not.
What is the preview above the output for?
It renders page 1 into a small canvas so you can see immediately whether the file is a digital document or a photograph of one. The preview is display-only — it is never part of the exported text.