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

clean code

This commit is contained in:
Lu Wang 2012-08-13 22:36:04 +08:00
parent 970ae7a4f0
commit 0cc1cc09c7
2 changed files with 14 additions and 2 deletions

View File

@ -70,12 +70,12 @@ HTMLRenderer::HTMLRenderer(const Param * param)
black.r = black.g = black.b = 0;
install_color(&black);
html_fout << HTML_HEAD << endl;
write_html_head();
}
HTMLRenderer::~HTMLRenderer()
{
html_fout << HTML_TAIL << endl;
write_html_tail();
}
void HTMLRenderer::process(PDFDoc *doc)
@ -120,6 +120,16 @@ void HTMLRenderer::process(PDFDoc *doc)
}
}
void HTMLRenderer::write_html_head()
{
html_fout << HTML_HEAD << endl;
}
void HTMLRenderer::write_html_tail()
{
html_fout << HTML_TAIL << endl;
}
void HTMLRenderer::startPage(int pageNum, GfxState *state)
{
this->pageNum = pageNum;

View File

@ -70,6 +70,8 @@ class HTMLRenderer : public OutputDev
return gTrue;
}
virtual void write_html_head();
virtual void write_html_tail();
// Start a page.
virtual void startPage(int pageNum, GfxState *state);