proper finish pages (close all clipping boxes)
authorkramm <kramm>
Wed, 9 May 2007 11:14:38 +0000 (11:14 +0000)
committerkramm <kramm>
Wed, 9 May 2007 11:14:38 +0000 (11:14 +0000)
lib/pdf/GFXOutputDev.cc
lib/pdf/pdf.cc

index 5f4b111..56257a5 100644 (file)
@@ -791,8 +791,6 @@ void GFXOutputDev::endframe()
        device->endclip(device);
        outer_clip_box = 0;
     }
-
-    device->endpage(device);
 }
 
 void GFXOutputDev::finish()
index eba2a67..13957de 100644 (file)
@@ -89,6 +89,7 @@ void render2(gfxpage_t*page, gfxdevice_t*output)
     pi->outputDev->setXRef(pi->doc, pi->doc->getXRef());
     pi->doc->displayPage((OutputDev*)pi->outputDev, page->nr, zoom, zoom, /*rotate*/0, true, true, /*doLinks*/(int)1);
     pi->doc->processLinks((OutputDev*)pi->outputDev, page->nr);
+    pi->doc->endframe();
 }