From 7a1983091ab67e3db77c00bfccfa74d78c717e22 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Mon, 27 Aug 2012 16:34:06 +0800 Subject: [PATCH] add a test script --- test/test.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 test/test.py diff --git a/test/test.py b/test/test.py new file mode 100755 index 0000000..7923ed6 --- /dev/null +++ b/test/test.py @@ -0,0 +1,18 @@ +#!/usr/bin/env python + +import os + +outf = open('out.html','w') + +outf.write('
') + +for f in os.listdir('pdf'): + if not f.lower().endswith('.pdf'): + continue + print f +#os.system('pdf2htmlEX -l 3 --dest-dir html pdf/%s' % (f,)) + ff = f[:-3]+'html' + outf.write('%s
' % (ff,ff)) + outf.flush(); + +outf.write('
')