How to Extract Text from a PDF on Mac

Copy text from any PDF on Mac — regular PDFs, scanned documents, and protected files. Using Preview, OCR, and PDF Opus.

To extract text from a PDF on Mac, open it in Preview and use Command+A to select all text, then Command+C to copy. Paste into any text editor. If the text cannot be selected (scanned PDF), you need OCR first. If the PDF is protected, you may need the password.

Method 1: Copy text from a regular PDF (free)

  1. Open the PDF in Preview
  2. Select the text you want (click and drag, or Command+A for all)
  3. Press Command+C to copy
  4. Open a text editor (TextEdit, Notes, Word) and paste with Command+V

This copies raw text without formatting. Paragraphs may run together, columns may merge, and tables lose their structure. For simple text extraction, it works fine. For preserving layout, convert to Word instead.

Method 2: Extract text by converting to Word

If you need the text with its formatting intact — paragraphs, headings, tables — convert the PDF to Word. The .docx file preserves the document structure far better than a simple copy-paste.

Method 3: Extract text from a scanned PDF

If you cannot select text in the PDF, it is a scan — each page is an image. You need OCR to extract the text layer.

  1. Run OCR on the scanned PDF using PDF Opus, Acrobat, or an online OCR tool
  2. Open the OCR'd PDF in Preview
  3. Select and copy text normally

PDF Opus runs OCR on your iPhone or iPad — no need to upload sensitive scanned documents to a cloud service.

Method 4: Use macOS Live Text

macOS includes Live Text, which recognizes text in images. In some cases, you can select text in a scanned PDF through Quick Look or Preview using Live Text. However, this is inconsistent for PDFs and does not create a permanent text layer. For reliable text extraction from scans, OCR is the proper solution.

Extracting text from protected PDFs

Some PDFs restrict text copying through permissions passwords. If you try to select text and nothing happens, the document likely has copy protection enabled. Options:

  • Enter the owner password to remove restrictions (see How to Remove a Password from a PDF)
  • Ask the document owner for an unrestricted version
  • Use the print-to-PDF workaround: print the file to a new PDF, which may strip copy restrictions (depends on the specific protection)

Extracting text from specific pages

If you only need text from certain pages, navigate to those pages in Preview before selecting. Click and drag to select specific paragraphs rather than using Command+A. For page-by-page extraction, this is more precise than selecting everything and sorting through it later.

Frequently asked questions

Why does copied PDF text have weird line breaks?

PDFs store text as positioned elements, not flowing paragraphs. When you copy, each positioned chunk becomes a separate line. Paste into a text editor and manually reflow, or convert to Word for better paragraph preservation.

Can I extract text from a PDF with images and tables?

Text extraction gives you the text only — images are not included. Tables may lose their column structure. For preserving tables, convert to Word or Excel rather than using text extraction.

Is there a way to extract all text from a PDF in one step?

Command+A in Preview selects all text in the current page. For multi-page extraction, you need to select text page by page, or convert the entire PDF to Word with a tool like PDF Opus.