From f083f662ad3023bf38b6a9b87255e4f2ed0771c4 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Tue, 28 Aug 2012 01:57:39 +0800 Subject: [PATCH] .. --- debian/control | 2 +- test/test.py | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) 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();