mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-21 12:40:08 +00:00
Removed commented-out code
This commit is contained in:
parent
2e4689915b
commit
7b2fc64462
1
AUTHORS
1
AUTHORS
@ -5,6 +5,7 @@ Contributors:
|
||||
Chris Cinelli <chris@allestelle.com>
|
||||
Daniel Bonniot de Ruisselet <dbonniot@chemaxon.com>
|
||||
Deepak <iapain@gmail.com>
|
||||
Denis Sablic <denis.sablic@gmail.com>
|
||||
filodej <philode@gmail.com>
|
||||
hasufell <julian.ospald@googlemail.com>
|
||||
Herbert Jones <herbert@mediafire.com>
|
||||
|
@ -79,18 +79,6 @@ void CairoBackgroundRenderer::render_page(PDFDoc * doc, int pageno)
|
||||
|
||||
cairo_t * cr = cairo_create(surface);
|
||||
setCairo(cr);
|
||||
/*
|
||||
setPrinting(false); // TODO, check the parameter
|
||||
cairo_save(cr);
|
||||
|
||||
// zoom the image to prevent CairoOutputDev from rounding/increasing thin borders
|
||||
{
|
||||
cairo_matrix_t matrix;
|
||||
cairo_matrix_init_identity(&matrix);
|
||||
cairo_matrix_scale(&matrix, DEFAULT_DPI, DEFAULT_DPI);
|
||||
cairo_transform(cr, &matrix);
|
||||
}
|
||||
*/
|
||||
|
||||
doc->displayPage(this, pageno, param.h_dpi, param.v_dpi,
|
||||
0,
|
||||
@ -99,7 +87,6 @@ void CairoBackgroundRenderer::render_page(PDFDoc * doc, int pageno)
|
||||
false,
|
||||
nullptr, nullptr, &annot_cb, nullptr);
|
||||
|
||||
// cairo_restore(cr);
|
||||
setCairo(nullptr);
|
||||
|
||||
{
|
||||
@ -109,7 +96,6 @@ void CairoBackgroundRenderer::render_page(PDFDoc * doc, int pageno)
|
||||
throw string("Cairo error: ") + cairo_status_to_string(status);
|
||||
}
|
||||
|
||||
// cairo_surface_show_page(surface);
|
||||
cairo_surface_finish(surface);
|
||||
{
|
||||
auto status = cairo_surface_status(surface);
|
||||
|
Loading…
Reference in New Issue
Block a user