Docker image razem-io/OCRmyPDFonWEB: Streamlit Web UI for OCRmyPDF
Posted by jpluimers on 2026/12/01
I needed a quick and semi-portable way to OCR PDF files of scanned documents (many offices don’t bother to configure the OCR option when scanning then mailing documents; heck even a lot of on-line invoices are just plain bitmap images embedded in PDF files).
Since firing up a Virtual Machine that has an ancient Adobe Acrobat installed is too much of a hassle and has only so-so OCR quality, I wanted a more portable solution.
This Docker image worked correctly the first time I tried: [Wayback/Archive] razem-io/OCRmyPDFonWEB: Streamlit Web UI for OCRmyPDF
docker run --rm -p 127.0.0.1:8501:8501 razemio/ocrmypdfonweb
On Windows this works splendid after installing Docker Desktop (see My first Docker on Windows steps).
Related
In case I ever want to dig into the Python and Streamlit background of this Docker image:
OCRmyPDF and related
I bumped into OCRmyPDF after trying PDFsandwich online first (which failed).
- [Wayback/Archive] c# – Tesseract ocr PDF as input – Stack Overflow (thanks [Wayback/Archive] acrab, [Wayback/Archive] Pierz and [Wayback/Archive] tobltobs):
Q
I am building an OCR project and I am using a .Net wrapper for Tesseract. The samples that the wrapper have don’t show how to deal with a PDF as input. Using a PDF as input how do I produce a searchable PDF using c#?
A
There is a handy tool OCRmyPDF that will add a text layer to a scanned PDF making it searchable – which essentially automates the steps mentioned in previous answers.
A
Tesseract supports the creation of sandwich since version 3.0. But 3.02 or 3.03 are recommended for this feature. Pdfsandwich is a script which does more or less what you want.
There is the online service
www.sandwichpdf.comwhich does use tesseract for creating searchable PDFs. You might want to run a few tests before you start implementing your solution with tesseract. The results are ok, but there are commercial products which deliver better results. - [Wayback/Archive] ocrmypdf/OCRmyPDF: OCRmyPDF adds an OCR text layer to scanned PDF files, allowing them to be searched
- [Wayback/Archive] OCRmyPDF documentation — ocrmypdf 14.4.1.dev1+g811f2338 documentation
- [Wayback/Archive] Installing OCRmyPDF — ocrmypdf 14.4.1.dev1+g811f2338 documentation
- [Wayback/Archive] Installing OCRmyPDF: Windows — ocrmypdf 14.4.1.dev1+g811f2338 documentationThis was way to complicated, especially to keep updated, hence my search for a docker image.
- [Wayback/Archive] OCRmyPDF Docker image: Docker — ocrmypdf 14.4.1.dev1+g811f2338 documentation
- [Wayback/Archive] sseemayer/ocrmypdf-web – Docker Image | Docker Hub (another Docker container)
- [Wayback/Archive] OCRmyPDFonWEB – Web UI for OCRmyPDF : selfhosted (the container I am actually using)
PDFsandwich
- [Wayback/Archive] pdfsandwich
- [Wayback/Archive] Online Searchable PDF creator (the pdfsandwich site which failed for me)
- [Wayback/Archive] nilox94/sandwich: pdfsandwich environment (tesseract OCR interface) in docker
- [Wayback/Archive] carlosayam/pdfsandwich: pdfsandwich packaged to run from Docker image
- [Wayback/Archive] matthiasluedtke/pdfsandwich – Docker Image | Docker Hub
PDF to HTML conversions (that maintain structure of the PDF document)
- [Wayback/Archive] coolwanglu/pdf2htmlEX: Convert PDF to HTML without losing text or format.
- [Wayback/Archive] pdftotree · PyPI
- [Wayback/Archive] pdftohtml(1) — poppler-utils — Debian testing — Debian Manpages
- [Wayback/Archive] Frooodle/Stirling-PDF: locally hosted web application that allows you to perform various operations on PDF files
StreamLit
- [Wayback/Archive] Streamlit • A faster way to build and share data apps
Streamlit turns data scripts into shareable web apps in minutes.
All in pure Python. No front‑end experience required. - [Wayback/Archive] GitHub – streamlit/streamlit: Streamlit — The fastest way to build data apps in Python
- [Wayback/Archive] streamlit (@streamlit) / X
Queries
- [Wayback/Archive] tesseract ocr pdf – Google Search
- [Wayback/Archive] ocrmypdf windows – Google Search
- [Wayback/Archive] chocolatey OCRmyPDF – Google Search which oddly found [Wayback/Archive] Chocolatey Software | Unpaper 6.1 which is also open source: [Wayback/Archive] unpaper/unpaper: A post-processing tool for scanned sheets of paper..
- [Wayback/Archive] ocrmypdf online – Google Search
- [Wayback/Archive] pdfsandwich docker – Google Search
- [Wayback/Archive] streamlit – Google Search
–jeroen






Leave a Comment