Preserve "text as curves" vector content

Never updated the checking logic to deal with a pure vector file with no text that needs an OCR layer. This is doable, so allow it.
This commit is contained in:
James R. Barlow
2018-02-07 16:05:48 -08:00
parent 4a61beae41
commit 1dfc32d7e6
2 changed files with 28 additions and 19 deletions
+1 -1
View File
@@ -433,7 +433,7 @@ def test_klingon(resources, outpdf):
def test_missing_docinfo(spoof_tesseract_noop, resources, outpdf):
p, out, err = run_ocrmypdf(
resources / 'missing_docinfo.pdf', outpdf, '-l', 'eng', '-c',
resources / 'missing_docinfo.pdf', outpdf, '-l', 'eng', '--skip-text',
env=spoof_tesseract_noop)
assert p.returncode == ExitCode.ok, err