mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2026-04-18 13:10:45 -04:00
The API's 'language' param was silently dropped because OcrOptions uses 'languages' (plural). Map language->languages in create_options() and _pdf_to_hocr(), coercing bare strings to lists and splitting '+' separated codes to match CLI behavior.