mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 04:50:09 +00:00
README
This commit is contained in:
commit
4c6a7b3631
@ -87,7 +87,7 @@ GPLv2 & GPLv3 Dual licensed
|
|||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
The following projects have been consulted for pdf2htmlEX:
|
pdf2htmlEX is inspired by the following projects:
|
||||||
|
|
||||||
* pdftops & pdftohtml from poppler
|
* pdftops & pdftohtml from poppler
|
||||||
* MuPDF
|
* MuPDF
|
||||||
|
2
TODO
2
TODO
@ -1,6 +1,6 @@
|
|||||||
rename single-html -> embed-font/image/css ...
|
rename single-html -> embed-font/image/css ...
|
||||||
|
|
||||||
bug found in baidu & mail & FCM
|
bug found in baidu & mail
|
||||||
|
|
||||||
option for tounicode-map
|
option for tounicode-map
|
||||||
get unicode from charname using fontforge (test with 'Font' croc.pdf)
|
get unicode from charname using fontforge (test with 'Font' croc.pdf)
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
@base.css
|
@base.css
|
||||||
$css
|
$css
|
||||||
@jquery.js
|
@jquery.js
|
||||||
#@hide_pages.js
|
@hide_pages.js
|
||||||
|
|
||||||
"""
|
"""
|
||||||
<title></title>
|
<title></title>
|
||||||
@ -39,7 +39,7 @@ $pages
|
|||||||
</div>
|
</div>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
#@scroll.js
|
@scroll.js
|
||||||
|
|
||||||
"""
|
"""
|
||||||
</body>
|
</body>
|
||||||
|
@ -162,11 +162,10 @@ void HTMLRenderer::startPage(int pageNum, GfxState *state)
|
|||||||
|
|
||||||
assert((!line_opened) && "Open line in startPage detected!");
|
assert((!line_opened) && "Open line in startPage detected!");
|
||||||
|
|
||||||
html_fout << "<div class=\"b\" style=\"width:" << pageWidth << "px;height:" << pageHeight << "px;\">";
|
html_fout
|
||||||
|
<< "<a name=\"a" << pageNum << "\">"
|
||||||
html_fout << "<a name=\"p" << pageNum << "\"></a>";
|
<< "<div class=\"b\" style=\"width:" << pageWidth << "px;height:" << pageHeight << "px;\">"
|
||||||
|
<< "<div id=\"p" << pageNum << "\" class=\"p\" style=\"width:" << pageWidth << "px;height:" << pageHeight << "px;";
|
||||||
html_fout << "<div id=\"p" << pageNum << "\" class=\"p\" style=\"width:" << pageWidth << "px;height:" << pageHeight << "px;";
|
|
||||||
|
|
||||||
if(param->process_nontext)
|
if(param->process_nontext)
|
||||||
{
|
{
|
||||||
@ -191,7 +190,6 @@ void HTMLRenderer::startPage(int pageNum, GfxState *state)
|
|||||||
}
|
}
|
||||||
|
|
||||||
html_fout << "\">";
|
html_fout << "\">";
|
||||||
|
|
||||||
draw_scale = 1.0;
|
draw_scale = 1.0;
|
||||||
|
|
||||||
cur_font_info = install_font(nullptr);
|
cur_font_info = install_font(nullptr);
|
||||||
@ -226,7 +224,7 @@ void HTMLRenderer::endPage() {
|
|||||||
cur_doc->processLinks(this, pageNum);
|
cur_doc->processLinks(this, pageNum);
|
||||||
|
|
||||||
// close page
|
// close page
|
||||||
html_fout << "</div></div>" << endl;
|
html_fout << "</div></div></a>" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -266,7 +264,7 @@ void HTMLRenderer::processLink(AnnotLink * al)
|
|||||||
delete dest;
|
delete dest;
|
||||||
|
|
||||||
if(pageno > 0)
|
if(pageno > 0)
|
||||||
dest_str = (char*)str_fmt("#p%x", pageno);
|
dest_str = (char*)str_fmt("#a%x", pageno);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user