Extract text from a PDF on Mac locally
PDF text extraction is useful when the document already has a text layer. It is risky when you treat scanned pages, tables, or copied line breaks as finished source material.
The short answer: first try selecting the text in Preview. If the PDF has usable selectable text and you need more than one short excerpt, use a local PDF-to-text utility, verify the extracted pages against the original, then export .txt or .docx only after checking for missing text, broken tables, and scanned pages.
TeenyTool is my app, so the bias is clear. Its PDF to Text utility is good for local extraction from searchable PDFs. It is not an OCR app, not a table repair tool, and not a citation verifier. If the PDF is scanned, you need OCR and a careful review pass.
This article is the TeenyTool spoke for the TeenyApps Mac PDF review checklist for text and colors. If the PDF review also needs visual evidence, pair it with the TeenyColor guide to picking colors from a PDF on Mac.
PDF text extraction decision table
| PDF situation | Best first move | Use TeenyTool when |
|---|---|---|
| One paragraph is needed | Copy it from Preview. | You need a repeatable local scratch copy after confirming selection works. |
| Many pages have selectable text | Run local PDF to Text. | You want all readable page text without uploading the PDF. |
| PDF is scanned or image-only | Use OCR. | Do not use TeenyTool as the only step. It does not OCR scanned pages. |
| Tables, columns, or footnotes matter | Extract, then compare carefully. | You can verify the output against the original before reuse. |
| PDF contains private or draft material | Keep extraction local. | The document should not be pasted into a web converter. |
01Check Preview before extracting
Open the PDF and try the small native test first. Apple documents the Preview workflow for copying PDF text: choose Text Selection, drag over the text, then copy it. If that works on normal paragraphs, a local extractor has something to read.
If you cannot select text, check the obvious reasons before blaming the file. Apple's Preview help notes that the Text Selection tool may not be selected, the PDF may require a password, or the PDF may not contain selectable text. Image-only scans need OCR, not a plain text extractor.
Write the status into your note: selectable, restricted, scanned, or mixed. That label is more useful than a mystery text file with missing pages.
02Extract locally when the text layer is usable
TeenyTool's PDF to Text utility stays simple on purpose. You can select a PDF, drop a PDF into the view, see the file name and page count, extract text in the background, copy all extracted text, export .txt, or export a minimal .docx.
The local Swift source uses PDFKit. It creates a PDFDocument from the file URL, loops through the page count, reads each page's string when available, and inserts page separators between extracted pages. It also rejects unsupported file types before extraction.
That makes it a good fit for private research PDFs, product specs, client drafts, meeting packets, or source material that should stay off random converter sites. It is still only as good as the PDF's text layer.
03Verify the extraction before reuse
Do not paste extracted PDF text into shared work without checking it. PDF text order can be strange. Columns may merge. Headers and footers may repeat. Tables can lose structure. Footnotes may move. Hyphenated line breaks can survive where you do not want them.
Use a quick verification pass:
- Compare the first page, one middle page, and the final page against the source PDF.
- Check headings and page separators.
- Search for missing section titles, obvious table values, and garbled characters.
- Mark scanned pages as missing text instead of pretending the extractor failed silently.
If the extracted text needs whitespace cleanup after verification, use the TeenyTool guide to cleaning copied text on Mac. Cleanup comes after source verification, not before it.
04Choose copy, TXT, or DOCX deliberately
Use Copy All for a short scratch note or when the next step is a local editor. Use .txt when you want a plain, durable, searchable companion file. Use .docx only when the next person needs to open the extracted text in a document editor.
| Output | Best use | Check first |
|---|---|---|
| Copy All | Temporary notes, local search, quick quote checks. | Make sure the text is not empty or missing scanned pages. |
| Export .txt | Plain-text review files and source folders. | Verify page separators and character encoding. |
| Export .docx | Handing text to someone who wants a document file. | Check line breaks and paragraphs before sending. |
05Keep the source PDF beside the extracted text
An extracted text file is a working copy, not the source of truth. Keep it beside the original PDF and a small review note that says which pages were checked, whether OCR was needed, and what the text file is meant to support.
A practical folder might contain:
- The original PDF.
- The extracted
.txtor.docxfile. - A review note with page ranges and extraction limits.
- Any color notes if the PDF also needed visual review.
If the PDF review is part of a larger research download pass, use the TeenyApps Mac research downloads checklist to clean up Finder and temporary files afterward.
Five-minute local PDF-to-text workflow
- Open the PDF in Preview.
- Try selecting a normal paragraph.
- Label the file as selectable, restricted, scanned, or mixed.
- Use local PDF to Text only when there is a readable text layer.
- Compare representative pages against the source PDF.
- Export
.txtor.docxonly after verification. - Keep the source PDF with the extracted file and review note.
Sources checked
- TeenyTool claims were checked against the TeenyTool homepage and local Swift source for
PDFTextExtractorView.swift, PDF to Text, PDFKit extraction, page count, copy all,.txtexport,.docxexport, unsupported file handling, and local UI behavior. - Apple Support: Select and copy text in a PDF in Preview on Mac.
- Apple Support: If you can't select or copy text in a PDF in Preview on Mac.
- Apple Developer Documentation: PDFDocument.
- Apple Developer Documentation: PDFPage string.
FAQ
Can I extract text from a PDF on Mac locally?
Yes, when the PDF has a usable text layer. Preview can copy selected text, and a local PDF-to-text utility can extract page text without uploading the document.
Why does a PDF text extractor return no text?
The PDF may be scanned, password restricted, image-only, or built without a usable text layer. A non-OCR extractor cannot recover text that is only present as pixels.
Does TeenyTool do OCR for scanned PDFs?
No. TeenyTool's PDF to Text utility extracts text that PDFKit can read from the PDF pages. It does not run OCR on scanned images.
Extract PDF text without sending the document to a website.
teenytool includes PDF to Text plus local utilities for URLs, JSON, Base64, text cleanup, images, colors, timers, and developer snippets.