Workflows
All tools
← Guides

Getting text out of a PDF: why copy and paste keeps failing

6 min read · updated 2026-10-24

You select a paragraph, copy, paste, and get a heap of broken lines, half the words glued together, and a page number in the middle of a sentence. That is not a broken tool. It is a document telling you what it actually is.

Two kinds of PDF that look identical

A PDF exported from Word, Google Docs, LaTeX or a design tool stores characters and instructions for drawing them, usually with an embedded font. The text is really there: you can select it, search it, and extract it.

A PDF produced by a scanner, a phone camera app or a fax machine stores one large picture per page. There are no characters anywhere in the file, only pixels. It renders perfectly and contains nothing you can copy.

Both open the same way and look the same on screen, which is why people assume the problem is the extractor rather than the document.

What extraction actually returns, measured

We built the same three pages twice and ran the same extraction pass over both. The first file was written as text. The second was that same page rendered to a picture and placed on a page, which is what a scanner produces.

DocumentPagesCharacters foundImages on page
Text PDF from a word processor3546 (182 per page)0
The same page as a picture101

Zero characters is a valid answer

When extraction returns an empty file, the tool is working. It read the page and found no text layer. The fix is not a better extractor, it is optical character recognition, which looks at the picture and guesses at letters.

OCR is a different job with a different failure mode: it is usually right and occasionally confidently wrong, which is worse than obviously empty for anything a machine will act on later. Invoices, prescriptions and legal dates deserve a human read afterwards.

If a scan has no text layer, extracting images is often the more useful move. A scanned page is one big image, but documents that combine a logo, a chart and a text box each give you separate pictures worth keeping.

Why text PDFs still paste badly

Extraction follows the order characters were drawn, not the order you read them. Multi-column layouts, tables, sidebars and footnotes are often drawn in an order that makes visual sense and reading sense that do not match.

Three other things trip it up. Ligatures such as fi and ff may arrive as a single glyph that maps to nothing. Words hyphenated across a line break stay hyphenated, with the newline still inside. And text inside a scanned-image background or a flattened form field has no layer at all, even in an otherwise normal PDF.

Most extractors repair some of this: they drop hyphen-newline pairs, merge lines that clearly continue, and collapse runs of spaces. They cannot reorder a layout they never saw. A two-column academic paper will often need manual stitching.

How to tell which kind you have in two seconds

  • Open the PDF and try to select a word in the middle of a paragraph with the mouse.
  • If a highlight appears and the cursor turns into a text caret, there is a text layer.
  • If the whole page highlights as one block, or nothing highlights at all, it is a picture. Do not bother with extraction.

A sensible order of operations

  • Try selecting text in the reader first. It costs nothing and answers the question.
  • If there is a text layer, extract to plain text, then fix columns rather than retyping anything.
  • If there is no text layer, decide whether you need words or pictures. Words means OCR, pictures means extract the images.
  • Keep the original PDF. Nothing you extract is a replacement for it, and every downstream copy loses something.