Files are processed in your browser, not uploaded. Privacy →
Skip to guide

Extract text

Why is my PDF to text file empty (and how to fix it)?

By DeckleUpdated

If PDF to text gives you an empty TXT file, the PDF almost always has no selectable text: its pages are images, usually from a scanner or phone camera. Check by trying to select a sentence in a viewer. If nothing highlights, the pages need OCR to recognise the words before any text export can work. If the text does highlight, check that you chose the right pages and opened the file in a plain text editor.

PDF to text

Visible words and extractable text are different

Visible page

May consist entirely of an image

Extracted text

Needs a usable PDF text layer

Diagnose the chosen pages before trying OCR

Conceptual diagnostic · an empty text result alone does not establish the cause or prove the source is unreadable.

How to fix an empty text file

  1. Open the PDF in a viewer and drag across a line of text on two or three different pages.
  2. If nothing highlights, the PDF is image-only. Run it through an OCR tool first, then extract from the recognised PDF.
  3. If the text highlights, open PDF to text again and drop the PDF onto the page.
  4. Under Pages and order, choose All pages so a mistyped page list is ruled out.
  5. Choose Extract text, then read the preview and the Verified: line on the result screen.
  6. Open the TXT file in a plain text editor such as Notepad or TextEdit rather than a browser preview.

The result screen tells you which case you are in. If the file is empty, the preview says "No text was extracted", and the Verified: line reports no selectable text to compare: the PDF holds no text for Deckle to read. A percentage of selectable text kept means the text was found and written to the file.

The four usual causes

What you see Cause Fix
Nothing highlights in the viewer, Verified says no selectable text Scanned or photographed pages OCR the PDF, then extract
Some pages have text, others are blank A mix of typed and scanned pages OCR only the scanned pages
The file has only a few lines Choose pages was set to the wrong pages Switch to All pages
The file looks empty in one app but not another The app is not showing plain text properly Open it in a plain text editor

Scanned or photographed pages

A scanner saves each page as a picture. Your eyes see words; the file holds pixels. PDF to text reads characters, so a picture gives it nothing. Zoom right in on the page: if letters break into blocks or blur, it is an image.

The fix is OCR, which recognises the letters and adds an invisible text layer behind the image. After that, the PDF has selectable text and PDF to text can export it. OCR text needs proofreading; native PDF text vs OCR text lists the usual misreads.

Text drawn as shapes

Some design and CAD software saves lettering as outlines, the same as any other drawing. It looks like text but cannot be selected. Posters, logos, maps and architectural drawings often work this way. OCR can read outlined text the same way it reads a scan, or you can go back to the source file and export it again with live text.

A narrow page selection

If you typed a list in Page numbers in output order, only those pages were read. A list such as 30-32 on a document where those pages are blank, or are figure pages, gives a near-empty file. The sentence under Pages and order says how many pages will be exported before you start; check it matches what you expect.

Pages that are only partly empty

When most pages work but a few come out blank, the PDF is mixed. That is common in contracts with a scanned signature page, reports with scanned appendices and documents assembled from several sources with Merge PDFs. Why is text missing from some pages shows how to find those pages and handle them on their own.

Tips

  • Search the PDF for a word you can see. If the viewer's search cannot find it, PDF to text cannot either.
  • Try the page you care about, not the cover. Covers are often images even in a typed document.
  • Watch for form feeds. With Mark where each page ended, a file from a scan can contain only page-break characters, which some editors show as empty lines.
  • Unlock first. A locked PDF never reaches extraction; the button says to unlock it, and Unlock PDF does that with the password.

Frequently asked questions

Why is my PDF to text output blank when I can read the PDF?

Because you are reading an image of text. The PDF has no stored characters, so there is nothing to extract until OCR recognises them.

Can Deckle extract text from images inside a PDF?

No. PDF to text reads the text layer only. Words inside photos, screenshots or scanned pages need OCR.

Will OCR text be perfect?

No. OCR misreads some characters, especially on faint, skewed or low-resolution scans. Check names, numbers and dates against the page after recognition.

Is the PDF damaged if no text comes out?

No. An image-only PDF is a valid PDF; it simply stores pictures instead of characters.

  • PDF to text to export selectable text once the PDF has it
  • Unlock PDF to remove a password before extracting
  • Split PDF to separate scanned pages from typed ones

Sources