This commit is contained in:
Lu Wang 2012-09-19 00:45:20 +08:00
commit 4c6a7b3631
4 changed files with 10 additions and 12 deletions

View File

@ -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

2
TODO
View File

@ -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)

View File

@ -24,7 +24,7 @@
@base.css
$css
@jquery.js
#@hide_pages.js
@hide_pages.js
"""
<title></title>
@ -39,7 +39,7 @@ $pages
</div>
"""
#@scroll.js
@scroll.js
"""
</body>

View File

@ -162,11 +162,10 @@ void HTMLRenderer::startPage(int pageNum, GfxState *state)
assert((!line_opened) && "Open line in startPage detected!");
html_fout << "<div class=\"b\" style=\"width:" << pageWidth << "px;height:" << pageHeight << "px;\">";
html_fout << "<a name=\"p" << pageNum << "\"></a>";
html_fout << "<div id=\"p" << pageNum << "\" class=\"p\" style=\"width:" << pageWidth << "px;height:" << pageHeight << "px;";
html_fout
<< "<a name=\"a" << pageNum << "\">"
<< "<div class=\"b\" style=\"width:" << pageWidth << "px;height:" << pageHeight << "px;\">"
<< "<div id=\"p" << pageNum << "\" class=\"p\" style=\"width:" << pageWidth << "px;height:" << pageHeight << "px;";
if(param->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 << "</div></div>" << endl;
html_fout << "</div></div></a>" << 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;