1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-05 17:48:38 +00:00

respect process-nontext

This commit is contained in:
Lu Wang 2012-09-17 15:28:52 +08:00
parent 839a710602
commit 1bd2ff24bc

View File

@ -160,6 +160,8 @@ void HTMLRenderer::startPage(int pageNum, GfxState *state)
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;";
if(param->process_nontext)
{
html_fout << "background-image:url(";
{
@ -177,7 +179,10 @@ void HTMLRenderer::startPage(int pageNum, GfxState *state)
}
}
html_fout << ");background-position:0 0;background-size:" << pageWidth << "px " << pageHeight << "px;background-repeat:no-repeat;\">";
html_fout << ");background-position:0 0;background-size:" << pageWidth << "px " << pageHeight << "px;background-repeat:no-repeat;";
}
html_fout << "\">";
html_fout << "<a name=\"p" << pageNum << "\"></a>";