How to Copy Text From a PDF (and Fix Messy Pasted Text)
To copy text from a PDF, open it in a viewer that supports text selection, drag across the passage and copy it as you would on a web page. If the pasted text has broken lines or odd characters, that’s normal for PDFs and easy to clean up. If you can’t select anything at all, the PDF is most likely a scan, and you’ll need text recognition (OCR) first.
You can open the paper in your browser’s built-in viewer or in Opener’s PDF viewer, which lets you select and copy text without uploading the file anywhere.
Selecting and copying the passage
- Open the PDF in a viewer with text selection: a browser, macOS Preview, or the PDF viewer.
- Zoom in so you can see exactly where the passage starts and ends. Starting a selection mid-word is the most common cause of half-copied quotes.
- Click just before the first word and drag to the end of the passage. To select a longer block, click at the start, scroll, then hold Shift and click at the end; this works in many viewers.
- Copy with Ctrl+C (Cmd+C on a Mac) and paste into your notes.
Two-column papers are where this gets fiddly. Depending on how the PDF was produced, a selection can jump from the left column into the right one, or pick up a page header or footnote in the middle. Copy one column at a time, and if it still jumps, copy smaller pieces and join them.
Before you close the file, note the page number of the quote. For citations you want the page number printed on the journal page, which often differs from the page count your viewer shows.
Why pasted text comes out broken
A PDF is built for printing, not editing. It stores where each character sits on the page, not how sentences and paragraphs fit together. When you copy, the viewer has to guess the structure back, and the guess isn’t always right.
- Line breaks in the middle of sentences. Each printed line ends with a hard break, so a quoted paragraph arrives as a stack of short lines.
- Hyphenated words. Words split across lines, like “experi-” and “ment”, stay split, with the hyphen.
- Missing or strange characters in “fi” and “fl”. Many fonts draw these pairs as a single combined glyph called a ligature. Some PDFs paste them as one special character, a box or nothing at all, so “find” becomes “nd”.
- Complete gibberish. If the text looks fine on screen but pastes as random symbols, the font in the PDF has no proper mapping from its glyphs back to real letters. The viewer can draw the shapes but doesn’t know which letters they are. No viewer can reliably fix that. Treat the file like a scan and use OCR, or retype the quote.
- Extra spaces or words run together. Justified text and tight kerning can confuse the spacing guess.
Math, special symbols and non-Latin scripts are more likely to come out wrong, so check those character by character.
Scanned PDFs: there’s no text to copy
If clicking and dragging draws a box or selects the whole page as one picture, the PDF is made of images, typically a scan or a photo of printed pages. It looks like text but contains none. Opener can display such files but does not do OCR, and neither do most basic viewers.
To get text out, you need optical character recognition:
- Google Drive and Docs. Upload the PDF to Google Drive and open it with Google Docs. Docs tries to recognise the text and creates an editable document. It works best on clean, straight scans; check the result carefully.
- Your phone’s text recognition. Recent iPhones (Live Text) and Android phones (Google Lens) can recognise text in a photo or on screen. Open the page, zoom in on the passage, and use the phone’s text-selection feature, or take a screenshot and recognise text from that.
- Desktop software with OCR. Some PDF editors and scanning apps include OCR. Your university library may also provide access to such tools.
OCR makes mistakes, especially with small print, old typefaces, footnotes and formulas. Always compare the recognised text against the page before quoting it.
When a PDF won’t let you copy
Some PDFs open normally but don’t let you select or copy text. The author or publisher has set permission restrictions in the file. These flags can block copying, printing or editing while still allowing reading. How strictly an app enforces them varies, but the restriction reflects the publisher’s wishes and may be tied to licence terms.
For a short academic quote, the straightforward options are:
- Type it out. For a sentence or two, this is quick and avoids every formatting problem.
- Check for another version. The same paper is often available from your library’s database, the journal’s website or a repository as an unrestricted PDF or an HTML page.
- Ask. Authors are usually happy to send a copy of their own paper.
Quoting a short passage with a proper citation is normal academic practice. Copying large parts of a restricted document is a different matter, so check your institution’s guidance if you’re unsure.
Cleaning up pasted text
A few habits turn a messy paste into a clean quote in seconds:
- Paste without formatting. Many apps have a “paste as plain text” option, often Ctrl+Shift+V. This drops the PDF’s fonts and sizes so the quote matches your document.
- Join the lines. In Word, Find and Replace can match paragraph marks with
^p. Replace them with a space to merge a paragraph into one line. Other editors have similar options, sometimes using regular expressions. Do it on the quote only, not your whole document. - Fix hyphenation. Search for a hyphen followed by a line break and remove both, then reread, because some hyphens are genuine (“well-known”).
- Check ligatures and symbols. Scan for missing “fi”, “fl” and “ff”, odd boxes, and quotation marks that turned into other characters.
- Compare with the original. Read the pasted quote against the PDF once, word by word. It takes a minute and is the only way to catch a silently dropped word.
If the PDF itself won’t open, start with what to do when a PDF won’t open.
Frequently asked questions
Why can I see the text but not select it?
The PDF is almost certainly a scan or made from images. There’s no text layer, only a picture of text. Use OCR, for example through Google Docs or your phone’s text recognition.
Why does my copied text have line breaks everywhere?
PDFs store each printed line separately, so line endings come along when you copy. Paste as plain text and replace the line breaks with spaces.
Does Opener’s PDF viewer do OCR?
No. The PDF viewer lets you select and copy text in PDFs that contain real text. Scanned PDFs display fine, but you’ll need an OCR tool to get text out of them.
Is it okay to copy text from a protected PDF?
The restriction is the publisher’s choice. For a short quote, typing it out with a citation is normal; for more, look for an unrestricted version or ask the author.