X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpdf%2FBitmapOutputDev.cc;h=d0129d260c63e168d10dd7d0bfaa05955dd763c0;hb=6a4e4086d9fb91474f4d8c7ae20ec2ad205a34d9;hp=53d23d1d013ce9b814a848572562d731989fc105;hpb=f4dd18d0c0b1c49af1f14f80d395fce7f9cd1350;p=swftools.git diff --git a/lib/pdf/BitmapOutputDev.cc b/lib/pdf/BitmapOutputDev.cc index 53d23d1..d0129d2 100644 --- a/lib/pdf/BitmapOutputDev.cc +++ b/lib/pdf/BitmapOutputDev.cc @@ -440,6 +440,16 @@ static void clearBooleanBitmap(SplashBitmap*btm) } } +long long unsigned int compare64(long long unsigned int*data1, long long unsigned int*data2, int len) +{ + long long unsigned int c; + int t; + for(t=0;t Non-optimal alignment"); + } + int l2 = len; + len /= sizeof(unsigned long long int); + c = compare64((unsigned long long int*)polypixels, (unsigned long long int*)textpixels, len); + int l1 = len*sizeof(unsigned long long int); + for(t=l1;t 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) { this->flushText(); @@ -568,7 +587,6 @@ void BitmapOutputDev::endPage() rgbdev->endPage(); clip0dev->endPage(); clip1dev->endPage(); - gfxdev->endPage(); } GBool BitmapOutputDev::upsideDown() @@ -1271,7 +1289,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); @@ -1289,7 +1309,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);