docs/releasenotes/version13.md
% SPDX-FileCopyrightText: 2022 James R. Barlow % SPDX-License-Identifier: CC-BY-SA-4.0
initialize plugin hook, making it possible to suppress built-in
plugins more easily, among other possibilities.887, 665optimize_pdf plugin hook, making it possible to create plugins that
replace or enhance OCRmyPDF's PDF optimizer.974os.nice on platforms that lack it. {issue}973--no-use-threads to disable this.distutils.version to examine version numbers of dependencies
at run time, and now use packaging.version for this. This is a new
dependency.876.868.--tesseract-thresholding to provide control over Tesseract 5's
threshold parameter.--output-type none,
added a few releases ago. Removed some obsolete documentation.Breaking changes
ocrmypdf.leptonica has been removed.liblept) or CFFI (libffi,
python3-cffi). (Note that Tesseract still requires Leptonica; OCRmyPDF no longer
directly uses this library.)--remove-background is temporarily disabled while we search for an
alternative to the Leptonica implementation of this feature.--threshold argument has been removed, since this also depended on Leptonica.
Tesseract 5.x has implemented improvements to thresholding, so this feature will be
redundant anyway.--deskew was previous calculated by a Leptonica algorithm. We now use a feature
of Tesseract to find the appropriate the angle to deskew a page. The deskew angle
according to Tesseract may differ from Leptonica's algorithm. At least in theory,
Tesseract's deskew angle is informed by a more complex analysis than Leptonica,
so this should improve results in general. We also use Pillow to perform the
deskewing, which may affect the appearance of the image compared to Leptonica.pip install ocrmypdf[...]
instead.Fixes