RelicRELIC
Copying text from images and PDFs

How to copy text from a scanned or locked PDF

Some PDFs refuse to give up their text. Either the page is a scan, which is really a photo of words, or the file is locked so copying is blocked. Here is how to get the text out of both, using OCR and a couple of safe workarounds, on desktop and phone.

Jordan Gibbs June 29, 2026 6 min readUpdated July 1, 2026
ImageOCREditable text
Optical character recognition reads the words inside an image and turns them into selectable, copyable text.

You highlight a paragraph, press Ctrl+C, paste it, and get nothing. Or you get a jumble of broken characters. With a normal PDF this would just work, so something about this one is different. There are two common culprits, and they need two different fixes. The first thing to do is find out which problem you actually have.

First, work out which problem you have

Open the PDF and try to select a single word with your cursor. Watch what happens.

  • The word highlights cleanly. The text is real, so the file is most likely locked: password protected or set to block copying. Skip to the locked section below.
  • Nothing highlights, and your cursor just draws a box. There is no selectable text at all. The page is a scan, an image of words, and you need OCR to read it.

This is the same fork we cover in the wider guide to copying text from a PDF. Most PDFs are neither scanned nor locked and behave normally. These two are the awkward exceptions.

Scanned PDFs: text trapped in a picture

A scanned PDF is what you get when someone runs paper through a scanner or photographs a page. To your eyes it reads as text. To the computer it is a flat image, with no letters inside it to select. The fix is optical character recognition (OCR), which looks at the shapes in the picture and works out the words they represent. Once OCR has run, you have real, copyable text.

On Windows

If you have Microsoft 365, OneNote is the reliable route: paste the page image into OneNote, right-click it, and choose Copy Text from Picture, which runs OCR on the image. Word can open a PDF, but for a scanned, image-only page it usually embeds the picture rather than reading the text, so OneNote is the better tool here. For a single page, a faster trick is to screenshot the part you need with the Snipping Tool, which has a built-in text action, or install Microsoft PowerToys and use Text Extractor (Win+Shift+T) to draw a box over any words on screen and copy them instantly.

On Mac

Open the PDF in Preview. On recent macOS versions, Live Text reads scanned pages directly, so you can often select and copy straight from the document. If a page stays stubbornly unselectable, take a screenshot (Cmd+Shift+4), open the image in Preview, and Live Text will pick up the words there.

Free online OCR

Plenty of sites convert a scanned PDF to text in your browser. They work, but think before you upload. A scanned contract, medical letter, or bank statement is exactly the kind of document you do not want sitting on a stranger’s server. For anything sensitive, stick to the tools already on your device.

A quick quality tip: OCR is only as good as the scan. If the result comes out garbled, rescan at around 300 dpi, straighten a skewed page, and make sure the contrast is strong. Clean input gives clean text.

Locked PDFs: the text is there but blocked

A locked PDF is the opposite situation. The text is real and selectable, but the file has restrictions that stop you copying it, sometimes alongside a password to open it at all. This is a permission setting baked into the document, not a fault on your machine.

If you can open and read the file but not copy from it, work through these options, ordered by how little they touch the original.

  • Screenshot and OCR it. The restriction blocks copying, not viewing. Screenshot the page and run the image through any of the OCR tools above. This sidesteps the lock without altering the file, and it is usually the quickest option for a page or two.
  • Print to PDF. Open the file, choose Print, and pick Microsoft Print to PDF (Windows) or Save as PDF (Mac). The new copy often drops the copy restriction. Note this only works if the file lets you print.
  • Use the owner password, if it is yours. If you set the protection, or have the password, open the PDF in a proper editor and remove the restriction at the source. That is the clean fix for your own documents.

The phone shortcut that often beats everything

If the PDF lives on your phone, or you can get it there, the built-in text readers are genuinely the fastest path and they do not care whether the file is scanned or locked, because they read the screen as an image.

  • iPhone. Open the PDF, screenshot the page, then open the screenshot in Photos. Tap the Live Text icon in the corner, and you can select and copy any words on the page.
  • Android. Open the PDF, then use Circle to Search or open the screenshot in Google Lens. Lens reads the text and offers a Copy button that drops it on your clipboard.

This is the same approach as copying text from any picture, just pointed at a PDF page. For the full set of methods across every device, including normal PDFs and plain images, the guide to copying text from an image, screenshot or PDF covers the lot.

A note on doing this respectfully

OCR and screenshots route around technical blocks, not legal ones. Copying text from a document you own, or have permission to use, for your own notes and reference is normal and fine. Copy protection on a paid book or a licensed report is there on purpose, and stripping it to share the work is a different matter. A fair rule of thumb: take what you need for your own use, and respect the terms the file came with.

Written by
Jordan GibbsFounder, Relic

Jordan Gibbs is the founder of Relic, an end-to-end encrypted, permanent, searchable memory for everything you copy. He writes widely about AI, agents, and practical tooling on Medium, where he is read by tens of thousands, and builds privacy-first software. Here he covers how everyday tools like the clipboard actually work, and how to use them without handing your data to someone else.

MediumGitHubLinkedIn
Part of
Copying text from images and PDFs
Keep reading
Pillar·8 min

How to copy text from an image, screenshot or PDF

Text trapped in a picture or a flattened PDF is not really stuck. Optical character recognition can lift it out on any device, including scans that refuse to select.

Read
6 min

How to copy text from a PDF

A normal PDF lets you select and copy like any document. A scanned or locked one needs a different approach. Both kinds handled, on desktop and phone.

Read
6 min

How to copy text from a picture

Your phone can already read the words inside a photo, you just have to know where to tap. Copying text from a picture on iPhone, Android, Windows and Mac.

Read
ocrhow-totroubleshooting