1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +00:00

fixing jumping

This commit is contained in:
Lu Wang 2012-09-18 21:16:20 +08:00
parent 011aab96bc
commit fc0f2ee12b
2 changed files with 7 additions and 6 deletions

View File

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

View File

@ -162,8 +162,11 @@ 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 << "<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 << "<a name=\"p" << pageNum << "\"></a>";
html_fout << "<div id=\"p" << pageNum << "\" class=\"p\" style=\"width:" << pageWidth << "px;height:" << pageHeight << "px;";
if(param->process_nontext) if(param->process_nontext)
{ {
@ -188,8 +191,6 @@ void HTMLRenderer::startPage(int pageNum, GfxState *state)
} }
html_fout << "\">"; html_fout << "\">";
html_fout << "<a name=\"p" << pageNum << "\"></a>";
draw_scale = 1.0; draw_scale = 1.0;