- pixbuf = ev_document_misc_get_thumbnail_frame (output->getBitmap()->getWidth(),
- output->getBitmap()->getHeight(),
- NULL);
- bitmap_to_pixbuf (output->getBitmap(), pixbuf, 1, 1);
+ width = output->getBitmap()->getWidth();
+ height = output->getBitmap()->getHeight();
+
+ 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, height);
+ gdk_pixbuf_fill (pixbuf, 0xffffffff);
+ bitmap_to_pixbuf (output->getBitmap(), pixbuf, 0, 0);
+ }
+