How to Extract Text from a PDF or Document

Learn how to pull readable text out of a PDF or Word file, including scanned pages that need OCR, and check the result before you reuse it.

You have a PDF or a document, and you need its text in a form you can search, quote, edit or reuse. Maybe it is a 30-page report you want to summarize, a scanned contract you need to quote from, or a table you want to move into a spreadsheet. Copying and pasting from the page often scrambles line breaks, drops tables into a single column, or returns nothing at all when the file is a scan.

This guide is for people who want a practical way to get that text out, not a developer workflow. It covers how to tell which kind of PDF you have, how to run OCR on scanned pages in the OmniDoc desktop client, how to export running text and tables, and how to check the result before you rely on it.

How do you extract text from a PDF or document? The short answer

Start by checking whether the file already contains selectable text, then run OCR only on the pages that need it, and export to Word or Excel for the final output. The table below shows which path fits your file.

Your situationWhat to doWhy
Digital PDF, text highlights when you select itExport to Word, then copy or save the text from thereThe text layer already exists, so OCR is not needed
Scanned PDF, selecting a line highlights nothingRun OCR on the PDF in the desktop client, then exportScanned pages are images until OCR turns them into text
PDF with a table you need as dataExport to Excel and check each columnTable cells usually survive better in a spreadsheet than in running text
Word, PowerPoint or Excel file you already haveOpen it and copy the text, or use the Word-compatible editorThese files already store text, so no extraction step is needed
Mixed file with scanned and digital pagesCheck each page, run OCR only on the scanned onesRunning OCR on pages that already have text can add errors

Before you start

Gather a few things first. They take a few minutes and prevent most of the rework.

  • The original file. Keep an untouched copy. If OCR or editing goes wrong, you can go back to the source without re-downloading it.
  • A sample page. Pick one page with a paragraph, a table and a number or name you can verify. Test your steps on it before running a whole document.
  • The desktop client. The PDF tools, including OCR and export, are in the OmniDoc desktop client for Windows, macOS and Linux. You can get it at download.omnidoc.top.
  • Your target format. Decide whether you need running text in Word, data in Excel, or plain text for another tool. Choosing the format first tells you which export to use.
  • Time to check. OCR output and exported tables need a read-through. Budget time for that, especially for contracts, research data or anything with figures.

Extracting text from a PDF in OmniDoc, step by step

  1. Test whether the PDF has selectable text. Open the file and drag your cursor across one line. If the line highlights, the PDF already has a text layer. If nothing highlights, the page is probably a scan or an image.
  2. Open the PDF in the OmniDoc desktop client. The PDF editor in the desktop client handles OCR, editing and export, so you can do the whole job in one place.
  3. Run OCR on scanned pages. OCR reads the image of each page and turns it into text that you can select and export. Run it on the scanned pages only, so digital pages keep their original text.
  4. Check a sample page before the full document. Compare the OCR text against the original for a few lines, including numbers, names, line breaks and footnotes. If the sample is poor, the scan may be blurry or skewed, and you may need a clearer copy of the source.
  5. Fix obvious errors in paragraph text. You can edit paragraph text in place in the PDF editor. Correct misread words or broken sentences now, because it is faster than cleaning up a long export later.
  6. Export to Word for running text. Export the PDF to Word. Use this output for articles, reports, letters and contracts where paragraphs and headings matter more than exact page layout.
  7. Export to Excel for tables. For tables you want as data, export to Excel instead. Check whether each row and column landed in the right cell, especially merged headers and multi-line cells.
  8. Save plain text if another tool needs it. OmniDoc's listed exports are Word, Excel and PowerPoint, so for a plain text file, open the Word export and save it as plain text using your word processor's save-as option. This keeps the text while dropping formatting.

If you have a Word, PowerPoint or Excel file already, you do not need OCR or export. Open it, select the text you need, and copy it. For Word files, the UniDoc web editor at app.unidoc.top offers Word-compatible editing, which is useful when you want to review or clean up the text before reuse.

Check the result

Extracted text is only useful if it matches the source. Run through these checks before you quote, publish or translate the output. OCR and automatic conversion can make mistakes, so compare important content with the original page.

CheckHow to see itIf it's wrong
Numbers and datesCompare each figure with the source pageCorrect it in the PDF editor, then re-export, or edit the Word file
Names and termsSearch the output for names, product codes and defined termsFix recurring misreads with find and replace in your word processor
Paragraph order and breaksRead the first and last line of several pagesRe-check the page order, and fix broken sentences in the PDF editor
Table cellsCompare column headers and a few rows with the originalExport again, or correct the cells in Excel by hand
Footnotes and captionsLook for small text at the bottom of pagesOCR often misses small type, so type these in manually if they matter
Special charactersCheck symbols, accents, equations and currency signsReplace them by hand, or copy the original characters from the source

If several checks fail on the same page, the scan is probably the problem. Try a clearer copy of the source, or type the critical passages yourself.

❓ FAQ

1. Can I extract text from a scanned PDF without OCR?

Usually not. A scanned page is an image, so there is no text to copy until OCR creates a text layer. Run OCR on the scanned pages in the desktop client, then check the result against the original.

2. Why does my export put a table into one long column?

The table may not have a clear grid, or the export may treat each cell as running text. Export to Excel instead of Word, then check each column and fix merged cells by hand.

3. Do I need to extract text before I can translate a document?

No. OmniDoc can translate PDFs, including scanned PDFs, Word files and other supported formats, and keeps the layout. Extraction is useful when you want the raw text for your own review, editing or reuse.

4. How do I check whether OCR missed anything?

Compare the output with the original page, starting with numbers, names, footnotes and any text in small type. Reading a few random pages closely will catch most systematic errors.

📝 Summary

Check whether your PDF already has selectable text, run OCR only on scanned pages, and export to Word for running text or Excel for tables. Then compare the output with the source, especially numbers, names and table cells. Keep the original file so you can start again if something goes wrong.

Open OmniDoc to turn PDF content into editable files

Updated 2026-11-04