TheFileTools

How to extract text from a PDF

Copy all the text of a PDF into a plain text file, and why scanned documents come back empty.

Selecting text in a PDF viewer page by page is slow, and the selection tends to jump around. When you want all the words, to quote them, search them or paste them into another document, it is quicker to pull the text out in one piece.

Steps

  1. Open PDF to text.
  2. Choose the PDF. It is read on your device.
  3. A preview of the start of the text appears. Press Copy to put the whole text on the clipboard, or Download to save it as a .txt file with the same name as the PDF.

What the result looks like

You get plain text only. The pages follow each other, separated by an empty line. Fonts, sizes, colours, pictures and page layout are gone. Line breaks mostly follow the lines of the original page, so a paragraph may arrive as several short lines. Remove line breaks joins them back into flowing text.

Tables and multi-column pages are the weak spot. The words are all there, but columns can run into each other and the order may not match how you would read the page. Check figures against the original before you rely on them.

Why a scan gives no text

A scanned document is a photograph of paper. It contains no letters, only pixels, so there is nothing to extract and the tool reports that no text was found. Reading text out of a picture needs text recognition (OCR), which this tool does not do. Some scanning apps can save a searchable PDF, and those work here.

Related tools

  • Word counter tells you how long the extracted text is.
  • Compare PDF shows which lines differ between two versions of a document.
  • PDF to JPG is the right choice when you need a picture of the page and not its words.