Skip to content
MacEpic.
All articles
Productivity

How to Copy Text from a PDF on Mac

Copy and paste text from a PDF on a Mac with Preview, and fix the cases where it won’t select: a scanned page, a password, or a file that blocks copying.

You probably know how to copy text from a PDF: select it, press Command–C, then Command–V. Some PDFs don’t work like that. A scanned page is an image, so its text has to be recognized first. A PDF can need a password or block copying. A table pastes row by row when you wanted one column. And text from almost any PDF pastes with a line break at the end of every line. Each of these has a fix on a Mac.

Can’t copy text from a PDF? Check these first

Open the PDF in Preview, then check these in order. The first two are on Apple’s page about PDFs you can’t select or copy text in.

  1. Choose the Text Selection tool. Choose Tools › Text Selection, then drag over the text. Preview has other tools, such as Rectangular Selection, which selects part of the page as an image, not as text.
  2. Enter the PDF’s password. Some PDFs open without a password but need one before you can select or copy text. Choose Tools › Show Inspector, click the Encryption button, then enter the password. Ask whoever made or sent the PDF for it.
  3. Check whether the page is a scan. If the PDF came from a scanner or a phone’s camera, or it looks like a photo of a printed page, its pages are images. Their text has to be recognized before you can copy it. Preview can usually do this: see “Copy text from a scanned PDF” below.

Copy text from a scanned PDF

A scanned PDF is an image of each page. To copy its text, an app has to recognize the letters in the image and turn them into text. This is called OCR (optical character recognition). Some scanners do it when they save the PDF. When they don’t, Preview and TextSniper can. OCR can misread letters, so check names and numbers in the text you copy from a scan.

Select the text in Preview

With Tools › Text Selection chosen, Preview recognizes the text on a scanned page with Live Text, the macOS feature that finds text in images. Drag over the text and copy it like any other text. Live Text isn’t available in every language or region (Apple’s guide to Live Text in Preview). If the text doesn’t select, use one of the two ways below.

Add the text to the whole PDF

Preview can also recognize the text on every page and save it in a new copy of the PDF. You can then select the text of the new PDF in any PDF app (Apple’s guide to embedding text in a PDF). This needs macOS Ventura (13) or later. To see your version, choose Apple menu › About This Mac.

  1. Open the scanned PDF in Preview.
  2. Choose File › Export.
  3. In the dialog that opens, type a name for the new PDF and choose where to save it. Select Embed Text, then click Save.
  4. Open the new PDF from the place you chose, choose Tools › Text Selection and drag over the text.

Preview offers Embed Text only for a PDF that has no recognized text yet. If you don’t see it, the PDF already has text: select it with Tools › Text Selection.

Copy text from anywhere on the screen with TextSniper

TextSniper is an app that copies text from the screen, not from the file, so you don’t have to open the PDF in Preview. It works on a PDF in Safari, Chrome, Mail or any other app, and on a scan or an image as well. TextSniper is a paid app. You can try it for free on its site or with Setapp.

  1. If the text is small, zoom in on it first.
  2. Press Command–Shift–2, TextSniper’s default shortcut.
  3. Drag a box around the text. TextSniper copies the text inside the box.
  4. Press Command–V to paste it.

Copy text from a PDF that blocks copying

Whoever makes a PDF can let people read it but not copy from it. In Preview you then can’t copy the text, although you can see it. If you have the PDF’s password, enter it: choose Tools › Show Inspector, click the Encryption button, then enter the password. If you don’t have it, ask whoever sent the PDF for the password, or for a copy that allows copying.

If you’re allowed to use the text, you can also copy it with TextSniper, an app that copies text from the screen: press Command–Shift–2, drag a box around the text, then press Command–V.

Copy one column of a table

When you drag over a table in Preview, it selects whole lines across the page. The other columns then come with the one you wanted. To get one column:

  1. Choose Tools › Text Selection.
  2. Hold down Option, then drag over the column. Preview selects only that column (Apple’s guide to copying text in a PDF).
  3. Press Command–C, then paste the column where you need it.

Compare the pasted numbers with the PDF before you use them.

Copy all the text in a PDF

  1. Open the PDF in Preview and choose Tools › Text Selection.
  2. Choose Edit › Select All, or press Command–A.
  3. Press Command–C, then paste the text into a document in TextEdit or Pages.

Page headers, footers and page numbers are pasted too, between the text of one page and the next. Read the text through and delete them. In a scanned PDF, nothing may select: add its text first, as in “Add the text to the whole PDF” above.

Paste text from a PDF without the line breaks

Text from a PDF pastes with a line break at the end of every line. A PDF keeps each line in its place on the page, not as part of a paragraph. The pasted text often keeps the PDF’s font and size too.

  • The line breaks: replace each line break inside a paragraph with a space. If you copy the text with TextSniper instead, it can join the lines into paragraphs for you.
  • The font and size: choose Edit › Paste and Match Style, or press Option–Shift–Command–V. The text then takes the font, color and size of the text around it (Apple’s page about copy and paste on Mac). The line breaks stay.

If the pasted text turns into symbols

Sometimes the text you paste from a PDF is symbols or random letters. The PDF then stores its text in a way other apps can’t read. Copy the text from the screen instead:

  • With TextSniper: press Command–Shift–2, drag a box around the text, then press Command–V.
  • With a screenshot: press Command–Shift–4 and drag over the text. macOS saves the screenshot on your desktop. Open it in Preview, choose Tools › Text Selection, and drag over the text in the image to copy it with Live Text.

The screenshot takes four steps: you take it, open it in Preview, choose the tool and select the text. Then the screenshot stays on your desktop. TextSniper skips these steps: you select the text on the screen, and it’s ready to paste.

A little more to discover

  • Valerijs Boguckis

    How to Scan a QR Code on Mac

    Scan a QR code on your Mac or MacBook screen or in an image, read a printed one with your iPhone, and check where its link goes before you open it.