output = new SplashOutputDev (splashModeRGB8, gFalse, color);
output->startDoc (pdf_document->doc->getXRef());
pdf_document->doc->displayPage (output,
- page_num,
+ page_num + 1,
72*scale_factor,
72*scale_factor,
0, gTrue, gFalse);
Thumb *thumb = NULL;
gboolean have_ethumbs = FALSE;
- /* Add 1 to page. !@#!!~!#!@#! */
- page ++;
-
- the_page = pdf_document->doc->getCatalog ()->getPage (page);
+ the_page = pdf_document->doc->getCatalog ()->getPage (page + 1);
the_page->getThumb(&the_thumb);
if (!(the_thumb.isNull () || the_thumb.isNone())) {