diff --git a/debian/control b/debian/control index e6dd3f9..dae5b4a 100644 --- a/debian/control +++ b/debian/control @@ -8,6 +8,6 @@ Homepage: http://github.com/coolwanglu/pdf2htmlEX Package: pdf2htmlex Architecture: any -Depends: libpoppler (>= 0.20.3), fontforge, libboost-filesystem1.46.1, libboost-progam-options1.46.1, +Depends: libpoppler (>= 0.20.3), fontforge, libboost-filesystem-dev, libboost-program-options-dev Description: Converts PDF to HTML without losing format pdf2htmlEX converts PDF to HTML while retaining text, format & style as much as possible diff --git a/test/test.py b/test/test.py index 345433e..e4403f4 100755 --- a/test/test.py +++ b/test/test.py @@ -1,16 +1,18 @@ #!/usr/bin/env python +DIR = 'pdf' + import os outf = open('out.html','w') -outf.write('
') +outf.write('
') -for f in os.listdir('pdf'): +for f in os.listdir(DIR): if not f.lower().endswith('.pdf'): continue print f - os.system('pdf2htmlEX -l 3 --dest-dir html pdf/%s' % (f,)) + os.system('pdf2htmlEX -l 3 --dest-dir html %s/%s' % (DIR,f)) ff = f[:-3]+'html' outf.write('%s
' % (ff,ff)) outf.flush();