From d82ea1e1a48c88241e2d01c4b9ad935ebcb3b9ba Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 6 Apr 2008 20:32:48 +0000 Subject: [PATCH] call endPage of GFXOutputDev *before* flushing all text/polygon output --- lib/pdf/BitmapOutputDev.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/pdf/BitmapOutputDev.cc b/lib/pdf/BitmapOutputDev.cc index 53d23d1..cedf06a 100644 --- a/lib/pdf/BitmapOutputDev.cc +++ b/lib/pdf/BitmapOutputDev.cc @@ -552,6 +552,7 @@ void BitmapOutputDev::startPage(int pageNum, GfxState *state, double crop_x1, do void BitmapOutputDev::endPage() { msg(" endPage (BitmapOutputDev)"); + gfxdev->endPage(); if(layerstate == STATE_BITMAP_IS_ABOVE) { this->flushText(); @@ -568,7 +569,9 @@ void BitmapOutputDev::endPage() rgbdev->endPage(); clip0dev->endPage(); clip1dev->endPage(); - gfxdev->endPage(); + + /* notice: we're not fully done yet with this page- there might still be + a few calls to drawLink() yet to come */ } GBool BitmapOutputDev::upsideDown() -- 1.7.10.4