This commit is contained in:
Kovid Goyal 2016-01-06 08:28:48 +05:30
parent a74cf1a3e4
commit c3d70ce7e0

View File

@ -88,7 +88,7 @@ def pdftohtml(output_dir, pdf_path, no_images, as_xml=False):
logf.close() logf.close()
out = open(logf.name, 'rb').read().strip() out = open(logf.name, 'rb').read().strip()
if ret != 0: if ret != 0:
raise ConversionError(b'return code: %d\n%s' % (ret, out)) raise ConversionError(b'pdftohtml failed with return code: %d\n%s' % (ret, out))
if out: if out:
print "pdftohtml log:" print "pdftohtml log:"
print out print out