diff --git a/README.md b/README.md index 550b6bc..c53119a 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ GPLv2 & GPLv3 Dual licensed ## Credits -The following projects have been consulted for pdf2htmlEX: +pdf2htmlEX is inspired by the following projects: * pdftops & pdftohtml from poppler * MuPDF diff --git a/TODO b/TODO index 8e9426d..7cd9e95 100644 --- a/TODO +++ b/TODO @@ -1,6 +1,6 @@ rename single-html -> embed-font/image/css ... -bug found in baidu & mail & FCM +bug found in baidu & mail option for tounicode-map get unicode from charname using fontforge (test with 'Font' croc.pdf) diff --git a/share/manifest b/share/manifest index 8b3d0a2..e5bf5aa 100644 --- a/share/manifest +++ b/share/manifest @@ -24,7 +24,7 @@ @base.css $css @jquery.js -#@hide_pages.js +@hide_pages.js """ @@ -39,7 +39,7 @@ $pages """ -#@scroll.js +@scroll.js """ diff --git a/src/HTMLRenderer/general.cc b/src/HTMLRenderer/general.cc index 52363ab..03aeb5a 100644 --- a/src/HTMLRenderer/general.cc +++ b/src/HTMLRenderer/general.cc @@ -162,11 +162,10 @@ void HTMLRenderer::startPage(int pageNum, GfxState *state) assert((!line_opened) && "Open line in startPage detected!"); - html_fout << "
"; - - html_fout << ""; - - html_fout << "
" + << "
" + << "
process_nontext) { @@ -191,7 +190,6 @@ void HTMLRenderer::startPage(int pageNum, GfxState *state) } html_fout << "\">"; - draw_scale = 1.0; cur_font_info = install_font(nullptr); @@ -226,7 +224,7 @@ void HTMLRenderer::endPage() { cur_doc->processLinks(this, pageNum); // close page - html_fout << "
" << endl; + html_fout << "
" << endl; } /* @@ -266,7 +264,7 @@ void HTMLRenderer::processLink(AnnotLink * al) delete dest; if(pageno > 0) - dest_str = (char*)str_fmt("#p%x", pageno); + dest_str = (char*)str_fmt("#a%x", pageno); } } break;