Copying text out of a PDF by hand is slow and error-prone, especially when the file runs to dozens of pages. This tool reads the text layer of each page and writes it into one plain text file called extracted-text.txt, in the order the pages appear.
It works on PDFs with selectable text: exports from Word, invoices from accounting systems, reports from design software. It does not read a scan, because a scan is a photograph with no text inside it, and the tool says so rather than handing back an empty file.
Page headings on or off
With page headings on, the file marks each page boundary with a line such as --- Page 4 ---. That is useful when you need to cite a page or split the text back into sections. Turn it off and pages are separated by a blank line, which is cleaner for pasting into a document or a spreadsheet cell.
The choice only changes the markers, not the words. On a five-page test report, headings on produced 1,567 bytes and headings off 1,487 bytes, with the same 1,487 characters of text in both.
Reading order and line breaks
Text is recovered page by page, in the order the page draws it. For a single-column document that reads perfectly. For a two-column layout, a sidebar or a table, the extractor can interleave the columns, because the visual position of a line is not the same as its reading order.
Line breaks are approximate. A sentence that wraps across three lines in the PDF usually arrives as three lines in the text file. Reflow it in your word processor, or join the lines with a search and replace. Tables lose their column alignment: a row of figures comes out as Server hosting 4,800.00 5,120.00 +320.00, with single spaces between values.
A worked example
A five-page quarterly report produced Extracted text from 5 pages, 248 words and 1,487 characters in a 1.5 KB file. The first lines were the title, the company and the date, followed by the opening paragraph and a --- Page 2 --- marker before the cost summary.
The cost table came out as five readable rows but without column spacing, and the landscape depot page came out as ordinary sentences. That is what to expect: the words survive, the layout does not.
Scans and mixed documents
A scanned plan with no text layer returned No selectable text was found. This looks like a scanned PDF; it needs OCR before text can be extracted. No file was written, which is the right outcome: an empty text file would look like a success.
A mixed document is handled page by page. Pages with text are extracted and pages without are skipped. If every page is a scan, the run stops with the OCR message.
Limits and when to use something else
One PDF of up to 120 MB per run. The output is always named extracted-text.txt and encoded as plain text, so accented characters and most punctuation survive but complex layout and embedded images do not.
If you need the words in a document you can edit, use PDF to Word. If you need a web page, use PDF to HTML. If you need the pages as pictures, use PDF to Image.