hocrtransform: cleanup/PEP8

Some API breaking changes.
This commit is contained in:
James R. Barlow
2020-04-15 02:48:56 -07:00
parent 957fb1494e
commit 31b5f63f85
3 changed files with 40 additions and 38 deletions
+1 -1
View File
@@ -41,6 +41,6 @@ def test_mono_image(blank_hocr, outdir):
im.save(outdir / 'mono.tif', format='TIFF')
hocr = hocrtransform.HocrTransform(str(blank_hocr), 300)
hocr.to_pdf(str(outdir / 'mono.pdf'), imageFileName=str(outdir / 'mono.tif'))
hocr.to_pdf(str(outdir / 'mono.pdf'), image_filename=str(outdir / 'mono.tif'))
qpdf.check(str(outdir / 'mono.pdf'))