docs/releasenotes/version12.md
% SPDX-FileCopyrightText: 2022 James R. Barlow % SPDX-License-Identifier: CC-BY-SA-4.0
importlib.resources.read_binary.pathlib.Path.--output-type none.843--max-image-mpixels if OCR fails for this
reason.--output-type=none to skip producing PDFs for applications that
only want sidecar files ({issue}787).--jbig2-lossy.unparse_content_stream if available.821).815, 816).813).802).795).setup.cfg instead of setup.py.
All changes should work with previously supported versions of setuptools.requirements/* are now considered deprecated but will be retained for v12.
Instead use pip install ocrmypdf[test] instead of requirements/test.txt, etc.
These files will be removed in v13.--remove-background on files containing small
images ({issue}769).770).Breaking changes
ocrmypdf.optimize were removed.ocrmypdf.leptonica module is now deprecated, due to difficulties with
the current strategy of ABI binding on newer platforms like Apple Silicon.
It will be removed and replaced, either by repackaging Leptonica as an
independent library using or using a different image processing library.pytest_helpers_namespace for testing.New features
get_progressbar_class, for progress reporting,
allowing developers to replace the standard console progress bar with some
other mechanism, such as updating a GUI progress bar.get_executor, for replacing the concurrency model.
This is primarily to support execution on AWS Lambda, which does not support
standard Python multiprocessing due to its lack of shared memory.get_logging_console, for replacing the standard
way OCRmyPDF outputs its messages.filter_pdf_page, for modifying individual PDF
pages produced by OCRmyPDF.Fixes
sys.stderr when older
versions of Leptonica are in use.761)