diff --git a/docs/release_notes.rst b/docs/release_notes.rst index 618f8e71..bb980dd4 100644 --- a/docs/release_notes.rst +++ b/docs/release_notes.rst @@ -18,7 +18,7 @@ v6.2.0 - List more reasons why the file size might grow. -- Fix issue `#262 `_, ``--remove-background`` error on PDFs contained colormapped (paletted) images. +- Fix issue `#262 `_, ``--remove-background`` error on PDFs contained colormapped (paletted) images. - Fix another XMP metadata validation issue, in cases where the input file's creation date has no timezone and the creation date is not overridden. diff --git a/src/ocrmypdf/__main__.py b/src/ocrmypdf/__main__.py index b988ff26..16900ba3 100755 --- a/src/ocrmypdf/__main__.py +++ b/src/ocrmypdf/__main__.py @@ -396,7 +396,7 @@ def check_options_output(options, log): "Ignoring --debug-rendering because it requires --pdf-renderer=hocr") if options.output_type == 'pdfa': - options.output_type == 'pdfa-2' + options.output_type = 'pdfa-2' lossless_reconstruction = False if options.pdf_renderer in ('hocr', 'sandwich'):