From 5437824ac399626ab2219baa59b94fb0b2772b29 Mon Sep 17 00:00:00 2001 From: kramm Date: Wed, 26 Mar 2008 13:00:43 +0000 Subject: [PATCH] xpdf-3.02 compatiblity switch --- lib/pdf/BitmapOutputDev.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/pdf/BitmapOutputDev.cc b/lib/pdf/BitmapOutputDev.cc index ccf1da9..8148a81 100644 --- a/lib/pdf/BitmapOutputDev.cc +++ b/lib/pdf/BitmapOutputDev.cc @@ -1269,8 +1269,15 @@ void BitmapOutputDev::beginTransparencyGroup(GfxState *state, double *bbox, GBool forSoftMask) { msg(" beginTransparencyGroup"); +#if (xpdfMajorVersion*10000 + xpdfMinorVersion*100 + xpdfUpdateVersion) < 30207 + GfxState*state1 = state->copy(); + GfxState*state2 = state->copy(); + state1->setPath(state->getPath()->copy()); + state2->setPath(state->getPath()->copy()); +#else GfxState*state1 = state->copy(gTrue); GfxState*state2 = state->copy(gTrue); +#endif boolpolydev->beginTransparencyGroup(state1, bbox, blendingColorSpace, isolated, knockout, forSoftMask); rgbdev->beginTransparencyGroup(state2, bbox, blendingColorSpace, isolated, knockout, forSoftMask); clip1dev->beginTransparencyGroup(state, bbox, blendingColorSpace, isolated, knockout, forSoftMask); @@ -1280,8 +1287,15 @@ void BitmapOutputDev::beginTransparencyGroup(GfxState *state, double *bbox, void BitmapOutputDev::endTransparencyGroup(GfxState *state) { msg(" endTransparencyGroup"); +#if (xpdfMajorVersion*10000 + xpdfMinorVersion*100 + xpdfUpdateVersion) < 30207 + GfxState*state1 = state->copy(); + GfxState*state2 = state->copy(); + state1->setPath(state->getPath()->copy()); + state2->setPath(state->getPath()->copy()); +#else GfxState*state1 = state->copy(gTrue); GfxState*state2 = state->copy(gTrue); +#endif boolpolydev->endTransparencyGroup(state1); checkNewBitmap(); rgbdev->endTransparencyGroup(state2); -- 1.7.10.4