diff --git a/docs/release_notes.rst b/docs/release_notes.rst index 906c994d..9ab775f6 100644 --- a/docs/release_notes.rst +++ b/docs/release_notes.rst @@ -9,14 +9,16 @@ The OCRmyPDF package itself does not contain a public API, although it is fairly find: [^`]\#([0-9]{1,3})[^0-9] replace: `#$1 `_ +v6.1.4 +------ -next ----- +- Fix issue #248, ``--clean`` argument may remove OCR from left column of text on certain documents. We now set ``--layout none``. - XMP metadata in PDFs is now examined using ``defusedxml`` for safety. - If an external process exits with a signal when asked to report its version, we now print the system error message instead of suppressing it. This occurred when the required executable was found but was missing a shared library. +- qpdf 7.0.0 or newer is now required as the test suite can no longer pass without it. v6.1.3 ------ diff --git a/src/ocrmypdf/exec/unpaper.py b/src/ocrmypdf/exec/unpaper.py index 7171e5e5..e41ee038 100644 --- a/src/ocrmypdf/exec/unpaper.py +++ b/src/ocrmypdf/exec/unpaper.py @@ -90,20 +90,9 @@ def run(input_file, output_file, dpi, log, mode_args): Image.open(output_pnm.name).save(output_file, dpi=(dpi, dpi)) -def deskew(input_file, output_file, dpi, log): - run(input_file, output_file, dpi, log, [ - '--mask-scan-size', '100', # don't blank out narrow columns - '--no-border-align', # don't align visible content to borders - '--no-mask-center', # don't center visible content within page - '--no-grayfilter', # don't remove light gray areas - '--no-blackfilter', # don't remove solid black areas - '--no-noisefilter', # don't remove salt and pepper noise - '--no-blurfilter' # don't remove blurry objects/debris - ]) - - def clean(input_file, output_file, dpi, log): run(input_file, output_file, dpi, log, [ + '--layout', 'none', '--mask-scan-size', '100', # don't blank out narrow columns '--no-border-align', # don't align visible content to borders '--no-mask-center', # don't center visible content within page