1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 04:50:09 +00:00

clean code

This commit is contained in:
Lu Wang 2012-08-13 22:45:07 +08:00
parent 0cc1cc09c7
commit 9450ea1f82

View File

@ -69,19 +69,16 @@ HTMLRenderer::HTMLRenderer(const Param * param)
GfxRGB black;
black.r = black.g = black.b = 0;
install_color(&black);
write_html_head();
}
HTMLRenderer::~HTMLRenderer()
{
write_html_tail();
}
void HTMLRenderer::process(PDFDoc *doc)
{
write_html_head();
std::cerr << "Processing Text: ";
xref = doc->getXRef();
for(int i = param->first_page; i <= param->last_page ; ++i)
{
@ -93,6 +90,7 @@ void HTMLRenderer::process(PDFDoc *doc)
std::cerr.flush();
}
std::cerr << std::endl;
write_html_tail();
if(param->process_nontext)
{