Fix build with poppler-25.09.1.

ok robert@ (maintainer)
This commit is contained in:
kili
2025-09-20 19:56:26 +00:00
parent 01465597bf
commit eafa2e39f3
2 changed files with 33 additions and 0 deletions
@@ -0,0 +1,19 @@
Fix build with poppler-25.09.1.
Index: sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
--- sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx.orig
+++ sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
@@ -1249,11 +1249,11 @@ void PDFOutDev::setSkipImages( bool bSkipImages )
#if POPPLER_CHECK_VERSION(21, 3, 0)
poppler_bool PDFOutDev::tilingPatternFill(GfxState *state, Gfx *, Catalog *,
- GfxTilingPattern *tPat, const double *mat,
+ GfxTilingPattern *tPat, const std::array<double, 6> &mat,
int x0, int y0, int x1, int y1,
double xStep, double yStep)
{
- const double *pBbox = tPat->getBBox();
+ const std::array<double, 4> &pBbox = tPat->getBBox();
const int nPaintType = tPat->getPaintType();
Dict *pResDict = tPat->getResDict();
Object *aStr = tPat->getContentStream();
@@ -0,0 +1,14 @@
Fix build with poppler-25.09.1.
Index: sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
--- sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx.orig
+++ sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
@@ -287,7 +287,7 @@ namespace pdfi
#if POPPLER_CHECK_VERSION(21, 3, 0)
poppler_bool useTilingPatternFill() override { return true; };
poppler_bool tilingPatternFill(GfxState *state, Gfx *gfx, Catalog *cat,
- GfxTilingPattern *tPat, const double *mat,
+ GfxTilingPattern *tPat, const std::array<double, 6> &mat,
int x0, int y0, int x1, int y1,
double xStep, double yStep) override;
#endif