Copying a paragraph out of a PDF should be as easy as copying it from a web page, but anyone who has tried knows it often is not. Sometimes nothing gets selected at all, sometimes the text comes out with a line break after every few words, and sometimes two columns end up mixed together. This guide explains why that happens, how to get clean text from most PDFs, and what to do when the PDF is really a scan.
First, find out what kind of PDF you have
Every PDF falls into one of two broad groups, and the right method depends entirely on which one you are holding.
- Text-based PDFs are created by software: exported from a word processor, saved from a spreadsheet, printed to PDF from a web page or produced by a billing system. The words are stored as real characters, positioned on the page with font information.
- Scanned or image-only PDFs are made by a scanner or a phone scanning app. Each page is a photograph of paper. What looks like text is just a pattern of pixels.
A quick test tells you which you have. Open the PDF and try to select a single word with your mouse, or press and hold on it on a phone. Then use your viewer's search function to look for a word you can see on the page.
| What you see | What it means | What to do |
|---|---|---|
| Words highlight one by one and search finds them | Text-based PDF | Copy directly or use a text extractor |
| The whole page highlights as one block, or nothing at all | Scanned or image-only PDF | You need OCR (text recognition) |
| Words highlight, but pasted text is gibberish | Text with a broken font encoding | Treat it like a scan and use OCR |
| Some pages work and others do not | A mixed document | Extract what you can, then OCR the rest |
Some scanned PDFs have already been through OCR and carry a hidden text layer behind the page image. These behave like text-based PDFs: you can select and search them, although the accuracy depends on how good the recognition was.
Why copied text often looks jumbled
A PDF is designed to look the same everywhere, not to be edited. It records where each piece of text should be drawn on the page, but it does not need to record sentences, paragraphs or the order in which a person would read them. When you copy text, your viewer has to rebuild that structure, and it does not always guess right.
Line breaks in the middle of sentences
In most PDFs, each printed line is stored as a separate line of text. When you paste, every line ends with a hard break, so a paragraph turns into a column of short lines. Hyphenated words at line ends may also stay split, as in "informa- tion".
Columns and sidebars in the wrong order
Text is stored in whatever order the creating program wrote it. In a two-column article this is often column by column, which is what you want, but sometimes it runs straight across both columns, so the left and right halves of each line are joined into nonsense. Sidebars, captions, footnotes and text boxes can appear in surprising places, such as before the heading they sit next to.
Missing or extra spaces
PDFs place characters at exact positions, and many files do not store the spaces between words at all. The viewer has to decide where a gap is wide enough to count as a space. Tightly set text can come out with words glued together, and justified text can come out with odd extra spaces.
Strange symbols
Characters such as "fi" and "fl" are often printed as single combined shapes called ligatures, and these may paste as one unusual character or disappear. If an entire passage pastes as random symbols, the PDF uses a font with a custom internal encoding and no information about which letter each shape represents. No extractor can reliably fix this, because the meaning of the shapes is simply not in the file.
Tables that fall apart
A table in a PDF is usually just text placed at positions that happen to line up, plus some drawn lines. When copied, cell values arrive as lines of text without the column structure. For anything more than a small table, ask the sender for the original spreadsheet if you can.
Ways to get text out of a text-based PDF
For a sentence or two, selecting and copying in your PDF viewer is fine. Some viewers also offer "Save as text" or "Export" options. For whole documents, a text extractor is quicker and gives you everything in one go, including text you would otherwise have to copy page by page.
Preslo's PDF to Text tool reads the text layer of each page with pdf.js, Mozilla's open-source PDF engine, and joins the pieces in the order they are stored in the file. Here is what to expect from the result:
- Plain text only. Fonts, bold and italic, colors, images and layout are not kept.
- Line breaks follow the PDF. A break is added wherever the file marks the end of a line, and pages are separated by a blank line.
- Optional page markers. You can add a "--- Page N ---" line before each page, which helps when you need to cite or find a passage later.
- Headers, footers and page numbers are included, because they are part of every page.
- Reading order follows the file, so multi-column pages can still come out in an unexpected sequence.
Step by step: extracting text with Preslo
- Open PDF to Text and drop your PDF onto the box, or click to choose it.
- If you want to see where each page starts, tick the option to add a "--- Page N ---" line.
- Click Extract text. The tool reads the pages one by one and shows the result with a page, word and character count.
- Click Copy text to put it on your clipboard, or Download as .txt to save a UTF-8 text file named after your PDF.
The PDF is processed inside your browser tab and is not uploaded, so this works for contracts, statements and other confidential papers. Password-protected PDFs need to be unlocked in the app that created them first.
Cleaning up the result
Extracted text often needs a little tidying before it is ready to use. A few practical habits help:
- Paste as plain text. In many editors, "Paste without formatting" or "Paste as plain text" avoids carrying over odd fonts and spacing.
- Join broken lines. Most text editors and word processors have a find-and-replace feature. Replacing single line breaks with spaces, while keeping the blank lines between paragraphs, rebuilds normal paragraphs. Work on a copy in case you need to undo.
- Fix hyphenation. Search for a hyphen at the end of a line and rejoin the word where appropriate. Be careful with words that are genuinely hyphenated.
- Check numbers and names. Before you quote a figure, reference or name, compare it with the PDF. Extraction is very reliable for normal text, but a missing space or swapped column can change meaning.
- Remove repeated headers and footers. Page numbers and running titles appear once per page and can interrupt paragraphs.
Once your text is clean, you can count it with the Word Counter, which is handy for essays or translation quotes that arrive as PDFs.
What to do with scanned PDFs
PDF to Text does not perform OCR. If a page contains only an image, there is no text for it to extract, and the tool tells you so rather than giving you an empty or misleading result. In a mixed document it extracts what it can and reports how many pages had no text.
To get text from a scan, you need OCR (optical character recognition), software that looks at the image and recognizes letters. You may already have access to it:
- Scanner apps and scanner software. Many include an option to make a "searchable PDF" or to export recognized text.
- Office suites and PDF editors. Several can recognize text in scanned pages, sometimes under a name like "Recognize text" or "Enhance scans".
- Phones. Recent iPhone and Android phones can recognize and copy text from photos in their built-in camera or photo apps. To use this with a scanned PDF, first turn the page into an image with PDF to Image, then open the image on your phone.
- Open-source tools. Free OCR engines such as Tesseract can process scans on your own computer, which suits people comfortable with technical software.
OCR accuracy depends heavily on the scan. Straight, evenly lit pages at a reasonable resolution give far better results than skewed or blurry photos. Handwriting, unusual fonts, stamps and low-contrast copies cause the most errors. Always proofread OCR output, especially numbers, because a misread digit looks perfectly normal on screen. Many online OCR services upload your files to a server, so for sensitive documents check how the service handles your data, or prefer software that runs on your own device.
Troubleshooting
- "No extractable text was found". The PDF is image-only. Use OCR as described above.
- The text is in the wrong order. The file stores it that way. Copy from your PDF viewer one column at a time, or rearrange the extracted text by hand.
- Random symbols instead of words. The PDF's fonts do not map shapes to letters. OCR is the most reliable way around it.
- Words run together. Spaces were not stored in the file and could not be inferred. Fix them while proofreading.
- The copy button does nothing. Some browsers block clipboard access. Select the text in the box and press Ctrl+C, or Cmd+C on a Mac.
Key takeaways
- Test the PDF first: if you can select single words and search them, it contains real text.
- Jumbled copies come from how PDFs store text, not from a mistake on your part: lines, columns and spaces must be rebuilt.
- PDF to Text gives you plain text with the file's own line breaks, ready to copy or save as .txt.
- Scanned PDFs contain no text; you need OCR, which PDF to Text does not provide.
- Always proofread numbers and names, and keep confidential documents on your own device where possible.
