mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
clean code
This commit is contained in:
parent
970ae7a4f0
commit
0cc1cc09c7
@ -70,12 +70,12 @@ HTMLRenderer::HTMLRenderer(const Param * param)
|
|||||||
black.r = black.g = black.b = 0;
|
black.r = black.g = black.b = 0;
|
||||||
install_color(&black);
|
install_color(&black);
|
||||||
|
|
||||||
html_fout << HTML_HEAD << endl;
|
write_html_head();
|
||||||
}
|
}
|
||||||
|
|
||||||
HTMLRenderer::~HTMLRenderer()
|
HTMLRenderer::~HTMLRenderer()
|
||||||
{
|
{
|
||||||
html_fout << HTML_TAIL << endl;
|
write_html_tail();
|
||||||
}
|
}
|
||||||
|
|
||||||
void HTMLRenderer::process(PDFDoc *doc)
|
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)
|
void HTMLRenderer::startPage(int pageNum, GfxState *state)
|
||||||
{
|
{
|
||||||
this->pageNum = pageNum;
|
this->pageNum = pageNum;
|
||||||
|
@ -70,6 +70,8 @@ class HTMLRenderer : public OutputDev
|
|||||||
return gTrue;
|
return gTrue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual void write_html_head();
|
||||||
|
virtual void write_html_tail();
|
||||||
|
|
||||||
// Start a page.
|
// Start a page.
|
||||||
virtual void startPage(int pageNum, GfxState *state);
|
virtual void startPage(int pageNum, GfxState *state);
|
||||||
|
Loading…
Reference in New Issue
Block a user