docs: update documentation for OCROptions plugin interface migration

Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
This commit is contained in:
James R. Barlow
2025-12-21 12:21:46 -08:00
co-authored by aider
parent 7b37f57b1c
commit 530186b468
4 changed files with 52 additions and 0 deletions
+7
View File
@@ -164,6 +164,13 @@ chaining operations.
.. autofunction:: ocrmypdf.pluginspec.check_options
```
:::{note}
**Plugin Interface Change**: Starting in OCRmyPDF v16.13.0, plugin hooks receive
`OCROptions` objects instead of `argparse.Namespace` objects. Most plugins will
continue working due to duck-typing compatibility, but plugin developers should
update their type hints accordingly.
:::
### Execution and progress reporting
```{eval-rst}