Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 06-09-2026, 07:36 AM   #1
feuille
Connoisseur
feuille will become famous soon enoughfeuille will become famous soon enoughfeuille will become famous soon enoughfeuille will become famous soon enoughfeuille will become famous soon enoughfeuille will become famous soon enough
 
Posts: 72
Karma: 666
Join Date: May 2020
Location: Germany
Device: android smartphone + tablet with Moon Reader and ReadEra Apps.
[GUI Plugin] OCRthisPDF

[GUI Plugin] OCRthisPDF – Version 1.0.0 – May 31, 2026

A Calibre GUI plugin that adds a text layer to scanned PDFs (direct OCR processing / "in-place OCR" based on OCRmyPDF),
including an optional proofreading function (not yet implemented).

Version History:
----------------
Version 1.0.0 – May 31, 2026
- Initial release.

Installation:
-------------
1. Install OCRmyPDF and its dependencies (Tesseract, Ghostscript, etc.) according to the OCRmyPDF documentation at:
https://ocrmypdf.readthedocs.io/en/l...roduction.html. Additional training files for German and German Fraktur script are provided by the University of Mannheim: https://github.com/UB-Mannheim/tesseract/wiki
2. Install the plugin as usual. No configuration is currently required.
3. Select a suitable menu for the plugin in the Calibre settings.

Usage:
------
- In most cases, the default settings are sufficient.
- Detailed information can be found in the OCRmyPDF documentation.
- Language information for Tesseract is derived from the book metadata; the default is English.
- If the text in the PDF image is not correctly aligned (e.g., rotated by 90 degrees), check the "rotate" box.
- For books in German Fraktur script, check the "fraktur" box.
- The proofreading step has not yet been implemented (coming in version 2).

Bug Reports and Suggestions:
----------------------------
If you encounter any issues or have suggestions, please report them in the MobileRead forum.
Attached Files
File Type: zip OCRthisPDF.zip (433.2 KB, 4642 views)
feuille is offline   Reply With Quote
Old 09-09-2026, 03:09 AM   #2
Menuhin
Junior Member
Menuhin began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2026
Device: Kindle 4 D01100
I tried this plugin while I can successfully run ocrmypdf on a shell.

On selecting a pdf (highlighted) in calibre and clicking the ocrthispdf button, I pressed the "Do OCR for this book button". I did not run and there are some error messages:

Quote:
calibre, version 8.5.0
ERROR: Unhandled exception: <b>ValueError</b>:__main__.__spec__ is None

calibre 8.5 embedded-python: False
Linux-6.12.107+deb13-amd64-x86_64-with-glibc2.41 Linux ('64bit', 'ELF')
('Linux', '6.12.107+deb13-amd64', '#1 SMP PREEMPT_DYNAMIC Debian 6.12.107-1 (2026-08-29)')
Python 3.13.5
Interface language: None
EXE path: /usr/bin/python3.13
Successfully initialized third party plugins: Find Duplicates (1, 10, 10) && KOReader Sync (0, 8, 2) && OCRthisPDF (1, 0, 0) && Toolbars Button (2, 0, 0)
Traceback (most recent call last):
File "calibre_plugins.ocrthispdf.main", line 1048, in ocr_my_pdf
if importlib.util.find_spec('__main__', package='ocrmypdf') is None:
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^
File "<frozen importlib.util>", line 111, in find_spec
ValueError: __main__.__spec__ is None
Menuhin is offline   Reply With Quote
Advert
Old 09-09-2026, 05:07 AM   #3
feuille
Connoisseur
feuille will become famous soon enoughfeuille will become famous soon enoughfeuille will become famous soon enoughfeuille will become famous soon enoughfeuille will become famous soon enoughfeuille will become famous soon enough
 
Posts: 72
Karma: 666
Join Date: May 2020
Location: Germany
Device: android smartphone + tablet with Moon Reader and ReadEra Apps.
Quote:
Originally Posted by Menuhin View Post
I tried this plugin while I can successfully run ocrmypdf on a shell.

On selecting a pdf (highlighted) in calibre and clicking the ocrthispdf button, I pressed the "Do OCR for this book button". I did not run and there are some error messages:
It looks like the OCRmyPDF installation isn't being found. I'll wrap the module search and loading sequence in a try-catch block for the next release for more clear messages.
feuille is offline   Reply With Quote
Reply

Tags
ocr, pdf, proofreading


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Streamer - RSVP Speed Reader plugin for Calibre npapadacis Plugins 6 04-24-2026 03:00 AM
[GUI Plugin] Noosfere_util, a companion plugin to noosfere DB lrpirlet Plugins 2 08-18-2022 03:15 PM
[GUI Plugin] Save Virtual Libraries To Column (GUI) chaley Plugins 14 04-04-2021 05:25 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 07:54 AM.


MobileRead.com is a privately owned, operated and funded community.