output = new SplashOutputDev (splashModeRGB8, gFalse, color);
output->startDoc (pdf_document->doc->getXRef());
pdf_document->doc->displayPage (output,
- page_num + 1,
+ page_num,
72*scale_factor,
72*scale_factor,
0, gTrue, gFalse);
if (border) {
pixbuf = ev_document_misc_get_thumbnail_frame (width, height, NULL);
+ bitmap_to_pixbuf (output->getBitmap(), pixbuf, 1, 1);
} else {
pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8,
- width + 4, height + 4);
+ width, height);
gdk_pixbuf_fill (pixbuf, 0xffffffff);
+ bitmap_to_pixbuf (output->getBitmap(), pixbuf, 0, 0);
}
- bitmap_to_pixbuf (output->getBitmap(), pixbuf, 1, 1);
delete output;
return pixbuf;
Object the_thumb;
Thumb *thumb = NULL;
- the_page = pdf_document->doc->getCatalog ()->getPage (page + 1);
+ the_page = pdf_document->doc->getCatalog ()->getPage (page);
the_page->getThumb (&the_thumb);
if (!(the_thumb.isNull () || the_thumb.isNone())) {
Thumb *thumb = NULL;
gboolean have_ethumbs = FALSE;
- /* getPage seems to want page + 1 for some reason; */
- the_page = pdf_document->doc->getCatalog ()->getPage (page + 1);
+ the_page = pdf_document->doc->getCatalog ()->getPage (page);
the_page->getThumb(&the_thumb);
if (!(the_thumb.isNull () || the_thumb.isNone())) {