TLDR Web Dev · ARTICLES & TUTORIALS

RUNNING OCR AGAINST PDFS AND IMAGES DIRECTLY IN YOUR BROWSER

simonwillison.net6 min read

Summary from the TLDR Web Dev newsletter

This article is a breakdown of a web app that combines PDF.js for PDF processing and Tesseract.js for OCR functionality, allowing users to drag and drop PDFs or images directly in their browser for text extraction. The project was built quickly with the help of Claude 3 Opus and ChatGPT for code generation. The end result is a program that is simple, runs locally without data uploads, and will work well without needing any updates in the future.