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.
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.
| Tool | What it is for |
| Scan & OCR | Scanning pages in, recognizing text, correcting recognized words, quick enhancements, Bates numbers, cropping, turning, and deleting pages. |
| Optimize Scans | Cleaning scanned pages: turning them the right way up, straightening, removing dark edges, specks, and bleed-through, black and white, and removing blank pages. |
| Compress PDF | Making 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.
- A new PDF: choose File ▸ Create ▸ PDF from Scanner…, or open the Create PDF tool, click Scanner, and click Scan.
- Add pages to this document: choose File ▸ Insert Pages ▸ From Scanner…, or Insert ▸ From Scanner on the Scan & OCR bar. The pages go in after the selected page, as one step that Edit ▸ Undo takes back.
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.
- Choose File ▸ Create ▸ PDF from Scanner….
- In Windows' scan window, choose the paper source, color, and resolution your scanner offers, and click Scan.
- 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.
- 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.
- Scanner: the scanners found. On a Mac this is every scanner the Mac can use: USB scanners (listed first, marked "(USB)"), network scanners, and shared ones. On Linux it is the network scanners that announce themselves (AirScan, which most current office scanners and multifunction printers support). The scanner you used last stays in the list even if it didn't answer this time.
- Find Again: looks for scanners again (useful when one was just switched on).
- Add by Address…: type the scanner's network address (for example
192.168.1.40) when it isn't found by itself. PlanetPDF remembers it.
- Forget Certificates: a scanner reached over an encrypted connection identifies itself with a certificate of its own. The first time, PlanetPDF shows its fingerprint and asks whether to use it, then remembers it and refuses a different certificate at that address later (something on the network may be pretending to be the scanner). After a scanner was reset or replaced, click this, and you're asked again.
- Scan from: only what the chosen scanner has: Glass (flatbed), Document feeder, or Document feeder, both sides.
- Colors: Color, Grayscale, or Black and white, as the scanner offers them.
- Resolution: 150, 200, 300, or 600 dpi (only the ones the scanner offers). 300 dpi is the usual choice for documents and for text recognition.
Click Scan. PlanetPDF remembers the scanner and your choices for next time.
- From the glass, each scan is one page. PlanetPDF then asks Scan another page?
- From the feeder, every page in the feeder is scanned at once. PlanetPDF then asks Scan more pages from the feeder?, so you can load another stack.
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.
- Open the Scan & OCR tool and choose Recognize Text ▸ In This File (or press Ctrl+Shift+O).
- 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.
- Choose the Language of the text.
- Choose the Resolution the pages are read at: 200 dpi (faster), 300 dpi (recommended), or 400 dpi (small print).
- 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.
- Pages that already have text PlanetPDF recognized are skipped, so running it again doesn't double the text.
- Words that are already ordinary text on the page aren't added again, so a page that's partly real text and partly a picture or outlines finds each word once.
- The recognized text is kept in its own layer, named "PlanetPDF OCR text".
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:
- Straighten and Clean First: runs Straighten & Clean on those pages (one undo step), then recognizes the text.
- Recognize As They Are: recognizes the pages without changing them.
- Cancel: does nothing.
Recognizing text in many files at once
- On the Scan & OCR bar, choose Recognize Text ▸ In Multiple Files….
- Click Add Files… or Add Folder… to list the PDFs. Remove, Up, and Down change the list.
- Choose the Language.
- 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).
- 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.
- On the Scan & OCR bar, choose Recognize Text ▸ Correct Recognized Text….
- 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.
- In Recognized as, type the right word or pick a suggestion from the list. Leave it empty to remove the word.
- Click Correct (or press Enter). Each correction is its own undo step.
- Not a Mistake: the word is right; it leaves the list.
- Ignore All: that word is never listed again while PlanetPDF is open.
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)
- Open the Optimize Scans tool and click Optimize… (or choose Enhance ▸ Optimize Scans… on the Scan & OCR bar).
- Under Pages, keep All N scanned pages, or choose Pages: and type them.
- Under Clean-up, tick the steps you want. They are all ticked, and all automatic, to start with:
- Turn pages scanned sideways or upside down the right way up
- Straighten crooked pages
- Remove dark borders at the edges (from a copier or scanner lid)
- Clean up: white paper (no shadows or yellowing), no specks or dust
- Remove bleed-through from the back of thin paper
- 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.
- 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)").
- 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:
- Automatic (black and white for text pages): pages that are only dark text on paper become black and white; pages with shading, photos, or faint tones become gray; pages with real color stay in color.
- Black and white: crisp text and by far the smallest file.
- Grayscale, or Keep the colors as scanned.
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.
| Step | What it does | Manual setting |
| Page direction | Turns 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 borders | Makes the black edges a copier or scanner lid leaves white. | Clear at every edge: a band in millimeters cleared at all four edges. |
| Straighten | Measures 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 up | Makes 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-through | Removes 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. |
| Color | The 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:
- Black & White: makes the scanned pages black and white (crisp text, much smaller). Nothing else is changed.
- Straighten & Clean: straightens crooked pages and removes dark edges, specks, and bleed-through, and makes the paper white. Colors stay as scanned.
- Fix Page Direction: turns pages scanned sideways or upside down the right way up.
Each is one undo step.
Removing blank pages
Double-sided scanning often leaves empty pages: the blank backs of one-sided sheets.
- On the Optimize Scans bar, click Remove Blank Pages… (or tick Remove blank pages in Optimize…).
- 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.
- 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:
- Scanned Document…: straightens the page, makes the paper white, and sharpens the text.
- Camera Image…: for a photo of a sheet of paper taken with a phone or camera. It finds the sheet in the photo, flattens it to a straight-on rectangle (taking out the angle the photo was taken at), then cleans it the same way.
- Choose Enhance ▸ Scanned Document… or Enhance ▸ Camera Image….
- Type the Pages (the selected pages are filled in).
- Tick Keep the colors if you want them; otherwise the result is black text on white, the clearest.
- 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.
- 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.)
- Current size shows how big the file is now.
- Choose the Quality:
- Smallest (for email and screens, 96 dpi pictures)
- Balanced (150 dpi pictures), the usual choice
- High quality (300 dpi pictures, for printing)
- Keep pictures as they are (compact the rest)
- Under Scanned pages, PlanetPDF says how many pages are scans. Both options are ticked to start with:
- Store text-only scans in black and white (much smaller): pages that are only dark text on paper lose the paper's tint, specks, and shading. Pages with color, photos, or shaded boxes are left in color or gray.
- Store scans without real color in gray: pages that look gray anyway become a third of the size with the same look.
- Under Result, choose:
- Make this document smaller (Save it afterwards; Undo puts it back), or
- Save a smaller copy as a new file (this document isn't changed). You then choose its name; PlanetPDF suggests "name_smaller.pdf".
- 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.
- Password-protected files keep their password when made smaller in place. For a smaller copy, PlanetPDF asks whether to protect the copy too.
- Digitally signed files: changing the file breaks its signatures, so PlanetPDF asks first, and the window starts on Save a smaller copy.
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:
- Pictures (scans, photos, logos)
- Fonts
- Page content (text and drawings)
- Comments and form fields
- Document structure and other
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
- "Text recognition needs Tesseract OCR": text recognition isn't installed on this computer. Ask IT to install it. Fix Page Direction and the page-direction step also need it.
- "This document has no scanned pages": the Optimize Scans steps only work on pages that are one picture of the whole page.
- "No text was recognized on those pages": the pages may be blank, very faint, or too coarse. Scan at 300 dpi, or choose 400 dpi in Recognize Text for small print.
- A network scanner doesn't appear (Mac, Linux): click Find Again, use Add by Address…, and on a Mac check the Local Network permission.