mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-21 20:50:07 +00:00
README
This commit is contained in:
commit
4c6a7b3631
@ -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
2
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)
|
||||
|
@ -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>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user