--- inkscape-1.4_2024-10-09_e7c3feb100/src/extension/internal/pdfinput/pdf-parser.cpp.orig 2024-07-28 13:27:55.000000000 +0200 +++ inkscape-1.4_2024-10-09_e7c3feb100/src/extension/internal/pdfinput/pdf-parser.cpp 2024-12-26 13:18:39.804024959 +0100 @@ -2400,6 +2400,7 @@ int bits; GBool interpolate; StreamColorSpaceMode csMode; + GBool hasAlpha; GBool mask; GBool invert; Object maskObj, smaskObj; @@ -2411,7 +2412,8 @@ // get info from the stream bits = 0; csMode = streamCSNone; - str->getImageParams(&bits, &csMode); + hasAlpha = false; + str->_POPPLER_GET_IMAGE_PARAMS(&bits, &csMode, &hasAlpha); // get stream dict dict = str->getDict(); --- inkscape-1.4_2024-10-09_e7c3feb100/src/extension/internal/pdfinput/poppler-transition-api.h.orig 2024-05-22 20:57:29.000000000 +0200 +++ inkscape-1.4_2024-10-09_e7c3feb100/src/extension/internal/pdfinput/poppler-transition-api.h 2024-12-26 13:22:31.001083859 +0100 @@ -15,6 +15,12 @@ #include #include +#if POPPLER_CHECK_VERSION(24,12,0) +#define _POPPLER_GET_IMAGE_PARAMS(bits, csMode, hasAlpha) getImageParams(bits, csMode, hasAlpha) +#else +#define _POPPLER_GET_IMAGE_PARAMS(bits, csMode, hasAlpha) getImageParams(bits, csMode) +#endif + #if POPPLER_CHECK_VERSION(24, 5, 0) #define _POPPLER_HAS_UNICODE_BOM(value) (hasUnicodeByteOrderMark(value->toStr())) #define _POPPLER_HAS_UNICODE_BOMLE(value) (hasUnicodeByteOrderMarkLE(value->toStr()))