Scans, Text Recognition, and File Size

This chapter covers paper documents: scanning them into a PDF, making their text searchable (text recognition, often called OCR), cleaning up crooked or dirty scans, and making large files smaller.

The tools for scans

Three tools on the tool strip at the right of the window work with scans. You can also open each one from the Tools menu.

ToolWhat it is for
Scan & OCRScanning pages in, recognizing text, correcting recognized words, quick enhancements, Bates numbers, cropping, turning, and deleting pages.
Optimize ScansCleaning scanned pages: turning them the right way up, straightening, removing dark edges, specks, and bleed-through, black and white, and removing blank pages.
Compress PDFMaking the file smaller, and seeing what takes up the room in it.

The Scan & OCR bar has these buttons: Insert ▾ (From File…, From Scanner), Enhance ▾ (Scanned Document…, Camera Image…, Optimize Scans…), Recognize Text ▾ (In This File, In Multiple Files…, Correct Recognized Text…), Bates Numbering ▾ (Add…, Remove…), then Crop Pages, rotate counterclockwise, rotate clockwise, and delete pages.

What PlanetPDF calls a scanned page: a page that is one picture covering the whole page (with, perhaps, invisible recognized text on top). Pages with ordinary text, drawings, or several pictures are not scans, and the scan tools leave them alone.

Scanning paper into a PDF

You can scan straight into a new PDF, or add scanned pages to the document that is open.

When you make a new PDF, PlanetPDF asks where to save it, opens it in a tab, and then asks Make the scanned pages searchable (OCR) now? Click Yes to recognize the text right away (see Recognizing text).

Scanning on Windows

On Windows, PlanetPDF uses Windows' own scan window, the same one other Windows programs show.

  1. Choose File ▸ Create ▸ PDF from Scanner….
  2. In Windows' scan window, choose the paper source, color, and resolution your scanner offers, and click Scan.
  3. PlanetPDF says how many pages are scanned so far and asks Scan another page? Put the next page on the scanner and click Yes, or click No when you are done.
  4. Choose where to save the new PDF.

If no scanner is found, PlanetPDF says so: check that the scanner is on, connected, and installed in Windows (Settings ▸ Bluetooth & devices ▸ Printers & scanners).

Scanning on a Mac or Linux: the Scan window

On a Mac and on Linux, PlanetPDF shows its own PDF from Scanner window.

Click Scan. PlanetPDF remembers the scanner and your choices for next time.

Click Cancel in the progress window to stop a scan. Pages already scanned are kept.

Mac: Local Network permission. macOS asks once whether PlanetPDF may find devices on your local network. Click Allow. If you clicked Don't Allow, network scanners can't be reached: turn PlanetPDF on in System Settings ▸ Privacy & Security ▸ Local Network. The Scan window reminds you of this when no scanner answers.

Recognizing text (OCR)

A scan is a picture of the page: you can't search it, select its words, or copy them. The same goes for text drawn as outlines: some design programs and printers turn letters into shapes, which look like text but aren't. Recognize Text reads the words in the picture and puts an invisible layer of text exactly on top of them. The page looks the same as before, but now Find (Ctrl+F), text selection, copying, Read Out Loud, redaction search, and exports to Word or text all work on it.

  1. Open the Scan & OCR tool and choose Recognize Text ▸ In This File (or press Ctrl+Shift+O).
  2. In Pages, choose Pages without searchable text (PlanetPDF lists the scanned pages, and the pages whose words are drawn as outlines) or These pages: and type them, for example 1,5,8-12.
  3. Choose the Language of the text.
  4. Choose the Resolution the pages are read at: 200 dpi (faster), 300 dpi (recommended), or 400 dpi (small print).
  5. Click Recognize. A window counts the pages ("Recognizing text on page 3 of 10"); Cancel stops without changing anything.

When it finishes, the status bar says how many words were recognized on how many pages. The whole recognition is one step: Edit ▸ Undo removes the recognized text again. Save the document to keep it.

Languages

The Language list shows the languages installed for text recognition on this computer (for example English, Spanish, French, German). PlanetPDF remembers the language and resolution you chose last. If text recognition isn't installed at all, PlanetPDF says that it needs Tesseract OCR and doesn't open the window; ask IT to install it.

"Straighten and clean them first?"

Text is recognized better on straight, clean pages. Before recognizing, PlanetPDF looks at a few of the scanned pages. If they are crooked (half a degree or more off level) or full of specks, it says so and asks:

Recognizing text in many files at once

  1. On the Scan & OCR bar, choose Recognize Text ▸ In Multiple Files….
  2. Click Add Files… or Add Folder… to list the PDFs. Remove, Up, and Down change the list.
  3. Choose the Language.
  4. Either leave Replace the original files unticked and choose a folder in Save in: (new copies go there), or tick it to write the text into the original files (each is replaced only after it worked).
  5. Click Recognize Text.

Every scanned page in each file gets searchable text; pages that already have text are left alone. The progress window counts files and pages ("File 2 of 5 (report.pdf): recognizing text on page 3…"). If you cancel, the files finished before that stay done. At the end PlanetPDF lists how many files were done and any that weren't, with the reason.

Correcting recognized text

Text recognition sometimes misreads a word, especially on faint or small print. Correct Recognized Text lists the words that look wrong, so you can compare each with the scan and fix it. This changes only the invisible text (what search and copy find); the picture of the page stays as it is.

  1. On the Scan & OCR bar, choose Recognize Text ▸ Correct Recognized Text….
  2. The list Words that may be misread shows each suspect word and its page: words not in the dictionary, or letters mixed with digits and odd marks. Click one. The page view goes to it and marks it with a red box, and On the page: shows that part of the scan.
  3. In Recognized as, type the right word or pick a suggestion from the list. Leave it empty to remove the word.
  4. Click Correct (or press Enter). Each correction is its own undo step.

If the document has no recognized text yet, PlanetPDF offers to recognize it first. Only text PlanetPDF recognized can be corrected here. Edit ▸ Check Spelling can also correct recognized words.

Optimizing scans

The Optimize Scans tool cleans up scanned pages: it turns pages the right way up, straightens them, removes dark copier edges, whitens the paper, removes specks and dust, removes faint text showing through from the back of thin paper, and stores the pages in black and white, gray, or color. Clean pages are easier to read, print better, recognize better, and are much smaller.

Only the picture of each scanned page is replaced, so the page keeps its comments, links, and anything else on it. Other pages aren't touched. Everything the tool does is one step that Edit ▸ Undo takes back; save the document to keep it.

Optimize… (all the steps, with a preview)

  1. Open the Optimize Scans tool and click Optimize… (or choose Enhance ▸ Optimize Scans… on the Scan & OCR bar).
  2. Under Pages, keep All N scanned pages, or choose Pages: and type them.
  3. Under Clean-up, tick the steps you want. They are all ticked, and all automatic, to start with:
  4. Under Result, choose the Color and Resolution (see below), and whether to Remove blank pages (you'll choose which) and Recognize text afterwards (OCR), so it can be searched and copied.
  5. Look at the Preview: the page as scanned and as it will be. Use the left and right arrows to step through the scanned pages ("Page 4 (scan 2 of 3)").
  6. Click Optimize. The progress window counts the pages.

When it's done, the status bar sums up what happened, for example "Cleaned 12 scanned pages, turned 2 the right way up, straightened 5, 10 in black and white." Pages that aren't scans are named and left alone.

Straightened pages lose their recognized text, because it no longer lines up with the words. Tick Recognize text afterwards (or run Recognize Text again) to put it back. Pages that were only turned keep their text.

Color and resolution

Color:

Resolution: 300 dpi (best for text), 200 dpi, 150 dpi (smallest), or Keep the scan's resolution. Scans finer than the choice are reduced to it; coarser ones are left as they are.

Advanced: each step automatic or manual

Click Advanced… to set each step yourself. The steps are listed on the left in the order they run, each with what it did on the preview page. Click one to see its settings, and choose Off, Automatic, or Manual. The preview then shows that step alone: "Before: straighten" and "After: straighten". Tick Whole clean-up to see the page as scanned and as it will be.

StepWhat it doesManual setting
Page directionTurns pages scanned sideways or upside down the right way up. Automatic reads a strip of text both ways to decide, so it needs text recognition to be installed. The page is turned without changing its picture, so nothing is lost.Turn every page: 90° clockwise, 180° (upside down), or 90° counterclockwise.
Dark bordersMakes the black edges a copier or scanner lid leaves white.Clear at every edge: a band in millimeters cleared at all four edges.
StraightenMeasures how crooked the lines of text are (up to 10° either way) and turns the picture level.Turn the picture by: degrees; a positive number turns it counterclockwise.
Clean upMakes the paper white (no shadows or yellowing) and removes specks and dust. Periods and the dots on i's stay.Remove specks up to: a size in millimeters.
Bleed-throughRemoves faint text showing through from the back of thin paper. Automatic only acts when something is showing through.Remove: a slider from Less to More. Further right removes darker marks too, including faint pencil or stamps, so check the preview.
ColorThe color chosen under Result.Manual threshold for black and white: a slider from Lighter to Darker. Further right keeps fainter writing (and makes text bolder).

Click Simple… to go back to the check boxes. Manual steps become automatic again.

The one-click buttons

The Optimize Scans bar also has buttons that do the most common jobs on every scanned page at once, with no questions:

Each is one undo step.

Removing blank pages

Double-sided scanning often leaves empty pages: the blank backs of one-sided sheets.

  1. On the Optimize Scans bar, click Remove Blank Pages… (or tick Remove blank pages in Optimize…).
  2. PlanetPDF looks at each page and shows the ones that look blank (nothing on them but specks or show-through from the back), each with a small picture.
  3. Untick any page you want to keep, then click Delete N Pages.

Faint pencil writing counts as something on the page, so such pages aren't offered. If every page looks blank, none are deleted. Edit ▸ Undo brings deleted pages back.

Enhance: Scanned Document and Camera Image

The Enhance menu on the Scan & OCR bar is a quick way to make a page clearer:

  1. Choose Enhance ▸ Scanned Document… or Enhance ▸ Camera Image….
  2. Type the Pages (the selected pages are filled in).
  3. Tick Keep the colors if you want them; otherwise the result is black text on white, the clearest.
  4. Click Enhance.

The page becomes the cleaned-up picture. Run Recognize Text afterwards for searchable text. Edit ▸ Undo puts the pages back. For more control, use Optimize Scans.

Making a file smaller (Compress PDF)

Scanned files in particular can be very large. Compress PDF shrinks the pictures, stores text-only scans in black and white, cuts fonts down to the letters used, and writes the file compactly.

  1. Open the Compress PDF tool and click Compress…. (File ▸ Save as Other ▸ Reduced Size PDF… and File ▸ Save as Other ▸ Optimized PDF… open the same window.)
  2. Current size shows how big the file is now.
  3. Choose the Quality:
  4. Under Scanned pages, PlanetPDF says how many pages are scans. Both options are ticked to start with:
  5. Under Result, choose:
  6. Click Compress.

PlanetPDF then shows the size before and after, and how many scanned pages went to black and white or gray. If compressing wouldn't make the file smaller, nothing is changed and PlanetPDF says the document is already compact.

Tip: for scans, Optimize Scans first (straighten, clean, black and white), then Compress: clean pages compress far better.

Space Usage: what takes up the room

Click Space Usage on the Compress PDF bar to see how much of the file each kind of content takes, as a size and a percentage:

It also gives the file size and how many pages are scans. If pictures take most of the room, Compress makes the biggest difference.

When something doesn't work