X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpdf%2FBitmapOutputDev.cc;h=e551fd610b9bc7bc49964a80df5b990392650286;hb=daf924a2341522b64d1374553d4b61bd75d0c86f;hp=8148a8167be9baddfaaea2818f61dfc25283dd0c;hpb=5437824ac399626ab2219baa59b94fb0b2772b29;p=swftools.git diff --git a/lib/pdf/BitmapOutputDev.cc b/lib/pdf/BitmapOutputDev.cc index 8148a81..e551fd6 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() @@ -1017,7 +1020,6 @@ void BitmapOutputDev::clip(GfxState *state) } void BitmapOutputDev::eoClip(GfxState *state) { - return; msg(" eoClip"); boolpolydev->eoClip(state); booltextdev->eoClip(state); @@ -1272,7 +1274,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); @@ -1290,7 +1294,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);