diff -Naur libreoffice-26.2.4.2.orig/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx libreoffice-26.2.4.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
|
old
|
new
|
|
| 1224 | 1224 | GfxRGB aMinRGB; |
| 1225 | 1225 | colorMap->getColorSpace()->getRGB( |
| 1226 | 1226 | #if POPPLER_CHECK_VERSION(0, 82, 0) |
| 1227 | | reinterpret_cast<const GfxColor*>(maskColors), |
| | 1227 | *(reinterpret_cast<const GfxColor*>(maskColors)), |
| 1228 | 1228 | #else |
| 1229 | 1229 | reinterpret_cast<GfxColor*>(maskColors), |
| 1230 | 1230 | #endif |
| … |
… |
|
| 1233 | 1233 | GfxRGB aMaxRGB; |
| 1234 | 1234 | colorMap->getColorSpace()->getRGB( |
| 1235 | 1235 | #if POPPLER_CHECK_VERSION(0, 82, 0) |
| 1236 | | reinterpret_cast<const GfxColor*>(maskColors)+gfxColorMaxComps, |
| | 1236 | *(reinterpret_cast<const GfxColor*>(maskColors)+gfxColorMaxComps), |
| 1237 | 1237 | #else |
| 1238 | 1238 | reinterpret_cast<GfxColor*>(maskColors)+gfxColorMaxComps, |
| 1239 | 1239 | #endif |
| … |
… |
|
| 1365 | 1365 | aBox.y2 = pBbox[3]; |
| 1366 | 1366 | |
| 1367 | 1367 | const int nDPI = 72; // GfxState seems to have 72.0 as magic for some reason |
| 1368 | | auto pSplashGfxState = new GfxState(nDPI, nDPI, &aBox, 0, false); |
| | 1368 | auto pSplashGfxState = new GfxState(nDPI, nDPI, aBox, 0, false); |
| 1369 | 1369 | #if POPPLER_CHECK_VERSION(26, 2, 0) |
| 1370 | 1370 | auto pSplashOut = new SplashOutputDev(splashModeRGB8, 1, nullptr); |
| 1371 | 1371 | #else |
| … |
… |
|
| 1375 | 1375 | pSplashOut->startDoc(m_pDoc); |
| 1376 | 1376 | pSplashOut->startPage(0 /* pageNum */, pSplashGfxState, nullptr /* xref */); |
| 1377 | 1377 | |
| 1378 | | auto pSplashGfx = new Gfx(m_pDoc, pSplashOut, pResDict, &aBox, nullptr); |
| | 1378 | auto pSplashGfx = new Gfx(m_pDoc, pSplashOut, pResDict, aBox, nullptr); |
| 1379 | 1379 | pSplashGfx->display(aStr); |
| 1380 | 1380 | std::unique_ptr<SplashBitmap> pSplashBitmap(pSplashOut->takeBitmap()); |
| 1381 | 1381 | // Poppler tells us to free the splash device immediately after taking the |
| 1382 | 1382 | // bitmap |
| 1383 | | delete pSplashGfxState; |
| 1384 | | delete pSplashGfx; |
| 1385 | 1383 | delete pSplashOut; |
| 1386 | 1384 | |
| 1387 | 1385 | // Add a vertical flip, we can't do this in LO for an image filled poly |
diff -Naur libreoffice-26.2.4.2.orig/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx libreoffice-26.2.4.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
|
old
|
new
|
|
| 37 | 37 | #include <GfxFont.h> |
| 38 | 38 | #include <UnicodeMap.h> |
| 39 | 39 | #include <Link.h> |
| | 40 | #include <Annot.h> |
| 40 | 41 | #include <Object.h> |
| 41 | 42 | #include <OutputDev.h> |
| 42 | 43 | #include <GlobalParams.h> |