New tests for ccitt, jbig2 encodings

This commit is contained in:
James R. Barlow
2016-01-19 13:01:56 -08:00
parent a0952bfca3
commit 9058dedfbe
3 changed files with 4 additions and 0 deletions

BIN
tests/resources/ccitt.pdf Normal file
View File

Binary file not shown.

BIN
tests/resources/jbig2.pdf Normal file
View File

Binary file not shown.

View File

@@ -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(