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:
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user