Fixed typo(?) in set_metadata() for touched files.

This commit is contained in:
GRiker 2013-06-24 14:14:08 -07:00
parent 8042ad136f
commit 8f30c17486

View File

@ -36,7 +36,7 @@ def set_metadata(stream, mi):
except WorkerError as e:
raise Exception('Failed to set PDF metadata: %s'%e.orig_tb)
if touched:
with open(os.path.join(tdir, u'output.pdf'), 'rb') as f:
with open(os.path.join(tdir, u'input.pdf'), 'rb') as f:
f.seek(0, 2)
if f.tell() > 100:
f.seek(0)