Don't deprecate falsy filter_page_image

This commit is contained in:
James R. Barlow
2022-08-05 01:07:46 -07:00
parent 47dcb6fcd0
commit ef70c9499e
2 changed files with 1 additions and 5 deletions
-4
View File
@@ -278,10 +278,6 @@ def filter_page_image(page: PageContext, image_filename: Path) -> Path:
will occur. The return value should be a path to a file in the same folder
as ``image_filename``.
Implementation detail: If the value returned is falsy, OCRmyPDF will ignore
the return value and assume the input file was unmodified. This is deprecated.
To leave the image unmodified, ``image_filename`` should be returned.
Note:
This hook will be called from child processes. Modifying global state
will not affect the main process or other child processes.