1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +00:00

update test.py

This commit is contained in:
Lu Wang 2012-08-27 16:39:45 +08:00
parent 7a1983091a
commit 5510e12288

View File

@ -10,7 +10,7 @@ for f in os.listdir('pdf'):
if not f.lower().endswith('.pdf'): if not f.lower().endswith('.pdf'):
continue continue
print f print f
#os.system('pdf2htmlEX -l 3 --dest-dir html pdf/%s' % (f,)) os.system('pdf2htmlEX -l 3 --dest-dir html pdf/%s' % (f,))
ff = f[:-3]+'html' ff = f[:-3]+'html'
outf.write('<a href="html/%s" target="pdf">%s</a><br/>' % (ff,ff)) outf.write('<a href="html/%s" target="pdf">%s</a><br/>' % (ff,ff))
outf.flush(); outf.flush();