OCR & Accessibility
Make your scanned documents searchable and accessible to all users using OCR (Optical Character Recognition) and accessibility features.
Understanding OCR
OCR (Optical Character Recognition) is a technology that recognizes text within images. In the PDF Editor, OCR is used to:
- Extract text from scanned pages — Convert image-based PDFs to searchable documents
- Make text selectable — Allows viewers to copy and select text
- Enable searching — Find specific words or phrases within the document
- Preserve original image — The scanned image remains visible while text becomes available underneath
When to Use OCR
Use OCR when:
- Scanning documents — You have scanned paper documents as PDFs
- Faxed documents — Converting old faxes to text
- Screenshots with text — Extracting text from screenshot-based PDFs
- Archived documents — Digitizing older documents for searchability
Don't need OCR for:
- Documents created in Word, Excel, or other applications
- PDFs exported from software (already have embedded text)
- Digital forms or documents
Running OCR on a Page
Starting OCR
- Navigate to the page you want to make searchable
- Look for the "Make searchable (OCR)" button above the page thumbnail
- Click the button
- An OCR process starts — this may take a few seconds
During OCR
- Processing indicator appears while the text is being recognized
- First run warning — First use may take longer as Tesseract.js downloads
- No interruptions — You can continue editing other elements while OCR runs
After OCR Completes
- The recognized text appears in a new text layer
- OCR text is dimmed and outlined in the editor for visibility
- Text is marked as OCR so it exports correctly
- The text becomes selectable and searchable in any PDF viewer
How OCR Works
Recognition Process
- The PDF Editor renders the page as an image
- Tesseract.js analyzes the image to find text
- Each line of recognized text becomes an element
- Text is positioned to match its location on the page
- Text opacity is set to 0% so it's invisible but selectable in export
Accuracy
OCR accuracy depends on:
- Image quality — Clearer scans produce more accurate results
- Text size — Larger text is recognized more accurately
- Font type — Standard fonts are recognized better than decorative fonts
- Language — Currently optimized for English
Typical accuracy:
- Good scans — 95%+ accuracy
- Average scans — 85-95% accuracy
- Poor scans — 60-85% accuracy
Editing OCR Results
Reviewing OCR Text
- After OCR completes, review each recognized line
- OCR text appears dimmed with an outline
- Look for any misrecognitions or errors
Fixing Errors
- Double-click any OCR text element to edit it
- Correct any misrecognized characters
- Click outside to save the changes
- The corrected text will be searchable in the exported PDF
Removing Incorrect Results
- Click an OCR text element to select it
- Press Delete to remove it
- Optionally add correct text using the Text tool
Adding Missing Text
If OCR misses some text:
- Use the Text tool to add missing content
- Position it in the same location as the OCR'd text
- Use the same font size and style for consistency
OCR Text in Exports
How OCR Text is Exported
When you export your document:
- OCR text is included in the PDF with 0% opacity
- The text is invisible to viewers
- The text is fully selectable and searchable
- The original scanned image remains visible
- Users can copy OCR'd text to their clipboard
Searching OCR'd Documents
In any PDF viewer, users can:
- Ctrl+F (or Cmd+F) to open the search dialog
- Search for any recognized text
- The text is found and highlighted
- Original image remains visible underneath
This makes scanned documents as searchable as digitally created ones.
Batch OCR
Currently, OCR runs on one page at a time. For multiple pages:
- Navigate to each page
- Click the OCR button for each page
- Wait for completion before moving to the next page
Tip — Start with important pages first, then continue with others.
Performance Considerations
Download Size
First-time OCR requires downloading Tesseract.js:
- Initial download — ~4-6 MB (one-time, cached by browser)
- Subsequent runs — Use cached version (very fast)
Processing Time
- First run — 5-15 seconds per page
- Subsequent runs — 2-5 seconds per page
- Large documents — Consider processing during off-peak hours
Browser Resources
- CPU usage — Processing uses your computer's CPU
- Memory usage — Minimal; processing runs in a web worker
- Battery — May impact laptop battery life during processing
Accessibility Features
Beyond OCR, the PDF Editor supports several accessibility features.
Text and Visual Hierarchy
- Use adequate font sizes — Minimum 12pt for body text
- Clear headings — Use the Text tool to create distinct heading levels
- High contrast — Ensure text color contrasts well with background
- Consistent styling — Use uniform fonts and sizes for similar content
Reading Order
For documents with complex layouts:
- Arrange elements logically — Top to bottom, left to right
- Use spacing — Group related content together
- Number pages — Add page numbers for reference
Semantic Meaning
- Describe images — Add nearby text explaining what images show
- Use lists — Structure information clearly
- Provide context — Ensure text is understandable without visual elements
Color and Contrast
- Don't rely on color alone — Use color + text or patterns
- Check contrast — Use a contrast checker tool for critical documents
- Light backgrounds — Help readers with low vision
For Scanned Documents
After running OCR:
- Review results — Ensure text recognition is accurate
- Correct errors — Fix any misrecognitions
- Maintain structure — Don't rearrange elements after OCR
PDF Accessibility Standards
The PDF Editor helps create accessible documents that meet:
- WCAG 2.1 — Web Content Accessibility Guidelines
- Section 508 — US accessibility standards for digital content
- PDF/A compliance — Archival format standard
Tips for Accessible Documents
Text-First Approach
- Add text rather than relying on images or shapes
- Use proper text formatting instead of visual effects
- Structure with text hierarchy for clarity
Image Handling
- Describe all images with nearby text
- Use alt text in text elements near images
- Avoid text in images — text in images can't be OCR'd
Form Fields
- Add text labels for all form fields
- Space fields appropriately for readability
- Use contrasting background colors for field areas
Testing Accessibility
- Read content aloud — Use a screen reader to check flow
- Test with zoom — Ensure document is readable at 200% zoom
- Check color — Verify usability in grayscale
Troubleshooting OCR
OCR doesn't seem to work
- Why — Text may already be present in the PDF
- Solution — OCR is only needed for scanned/image-based pages
- Check — Try searching for text first; if found, OCR isn't needed
OCR results are very inaccurate
- Why — The scan quality is low, or text is too small
- Solution — Manually add correct text using the Text tool
- Prevention — Use higher quality scans in the future
OCR is very slow
- Why — First run requires downloading Tesseract.js
- Solution — Wait for completion; subsequent runs are faster
- Optimization — Close other browser tabs to free resources
OCR creates duplicate text
- Why — Both original text and OCR'd text might be present
- Solution — Delete the OCR text layer if original is already searchable
- Avoid — Run OCR only once per page
Browser Requirements
OCR requires:
- Modern browser — Chrome, Firefox, Safari, or Edge (recent versions)
- JavaScript enabled — Required for OCR processing
- Sufficient memory — At least 2 GB RAM recommended
- Internet connection — First run downloads Tesseract.js
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
Ctrl+F / Cmd+F | Search in exported PDF |
Ctrl+Z / Cmd+Z | Undo OCR text additions |
Next Steps
- Sharing & Collaboration — Share accessible documents
- Text Editing — Format text for accessibility
- FAQ & Troubleshooting — Get more help