diff --git a/tests/resources/ccitt.pdf b/tests/resources/ccitt.pdf new file mode 100644 index 00000000..98187271 Binary files /dev/null and b/tests/resources/ccitt.pdf differ diff --git a/tests/resources/jbig2.pdf b/tests/resources/jbig2.pdf new file mode 100644 index 00000000..3ae244f0 Binary files /dev/null and b/tests/resources/jbig2.pdf differ diff --git a/tests/test_main.py b/tests/test_main.py index ae37ce6e..1ec525ab 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -138,6 +138,10 @@ def test_clean(spoof_tesseract_noop): ('palette.pdf', 'tesseract'), ('cmyk.pdf', 'hocr'), ('cmyk.pdf', 'tesseract'), + ('ccitt.pdf', 'hocr'), + ('ccitt.pdf', 'tesseract'), + ('jbig2.pdf', 'hocr'), + ('jbig2.pdf', 'tesseract') ]) def test_exotic_image(spoof_tesseract_cache, pdf, renderer): check_ocrmypdf(