ocrmypdf-api
Installation
SKILL.md
OCRmyPDF — Python API & Plugins Guide
Overview
OCRmyPDF provides a Python API for programmatic use and a plugin interface for extending or replacing OCR engines. This skill covers the Python API, integration patterns, and the plugin ecosystem.
For CLI usage, see the ocrmypdf skill. For batch scripting, see ocrmypdf-batch.
Python API
Basic usage
import ocrmypdf
# Basic OCR
exit_code = ocrmypdf.ocr('input.pdf', 'output.pdf')