X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpdf%2FBitmapOutputDev.cc;h=c9cbd0c9e3621ff2735f367603288ce252ed03f3;hb=6a529bfa890997a55fec9ae0e0d388cf9d5276c2;hp=cedf06a80ec09b7f17ac4ef11c7a0ba066a741e7;hpb=d82ea1e1a48c88241e2d01c4b9ad935ebcb3b9ba;p=swftools.git diff --git a/lib/pdf/BitmapOutputDev.cc b/lib/pdf/BitmapOutputDev.cc index cedf06a..c9cbd0c 100644 --- a/lib/pdf/BitmapOutputDev.cc +++ b/lib/pdf/BitmapOutputDev.cc @@ -552,6 +552,13 @@ void BitmapOutputDev::startPage(int pageNum, GfxState *state, double crop_x1, do void BitmapOutputDev::endPage() { msg(" endPage (BitmapOutputDev)"); + + /* notice: we're not fully done yet with this page- there might still be + a few calls to drawLink() yet to come */ +} +void BitmapOutputDev::finishPage() +{ + msg(" finishPage (BitmapOutputDev)"); gfxdev->endPage(); if(layerstate == STATE_BITMAP_IS_ABOVE) { @@ -569,9 +576,6 @@ void BitmapOutputDev::endPage() rgbdev->endPage(); clip0dev->endPage(); clip1dev->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() @@ -1274,7 +1278,9 @@ void BitmapOutputDev::beginTransparencyGroup(GfxState *state, double *bbox, #if (xpdfMajorVersion*10000 + xpdfMinorVersion*100 + xpdfUpdateVersion) < 30207 GfxState*state1 = state->copy(); GfxState*state2 = state->copy(); + state1->setPath(0); state1->setPath(state->getPath()->copy()); + state2->setPath(0); state2->setPath(state->getPath()->copy()); #else GfxState*state1 = state->copy(gTrue); @@ -1292,7 +1298,9 @@ void BitmapOutputDev::endTransparencyGroup(GfxState *state) #if (xpdfMajorVersion*10000 + xpdfMinorVersion*100 + xpdfUpdateVersion) < 30207 GfxState*state1 = state->copy(); GfxState*state2 = state->copy(); + state1->setPath(0); state1->setPath(state->getPath()->copy()); + state2->setPath(0); state2->setPath(state->getPath()->copy()); #else GfxState*state1 = state->copy(gTrue);