1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 04:50:09 +00:00
This commit is contained in:
Lu Wang 2013-08-09 06:52:07 +08:00
parent 4ce7fa3400
commit b6f5855533
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ var pdf2htmlEX = (function(){
this.n = parseInt(this.$p.data('page-no'), 16);
this.$b = $('.'+CSS_CLASS_NAMES['page_content_box'], this.$p);
this.$d = this.$p.parents('.'+CSS_CLASS_NAMES['page_decoration']);
this.$d = this.$p.parent('.'+CSS_CLASS_NAMES['page_decoration']);
this.h = this.$p.height(); // Need to make rescale work when page_content_box is not loaded, yet
this.w = this.$p.width();

View File

@ -13,7 +13,7 @@ with open('out.html','w') as outf:
if not f.lower().endswith('.pdf'):
continue
print f
if os.system('pdf2htmlEX -l 10 --optimize-text 1 --no-drm 1 --fit-width 1024 --dest-dir html --external-hint-tool="ttfautohint" "%s/%s"' % (DIR,f)) != 0:
if os.system('pdf2htmlEX -l 10 --no-drm 1 --fit-width 1024 --dest-dir html --external-hint-tool="ttfautohint" "%s/%s"' % (DIR,f)) != 0:
print "error on ", f
sys.exit(-1)