Wednesday, February 18, 2026

update print/poppler

Hi,

this updates poppler to 26.02.0.

This is for people who want to test print/scribus (sent a few minutes
ago).

I'll give this and those ports I already prepared for 26.02.0 (and
some remaining ports that don't have enough #ifdef goo to be committed
before poppler) a try tomorrow and will commit them on saturday.

Ciao,
Kili

Index: Makefile
===================================================================
RCS file: /cvs/ports/print/poppler/Makefile,v
diff -u -p -r1.205 Makefile
--- Makefile 9 Jan 2026 19:52:31 -0000 1.205
+++ Makefile 18 Feb 2026 20:27:28 -0000
@@ -3,7 +3,7 @@ COMMENT-qt5= Qt5 interface to PDF render
COMMENT-qt6= Qt6 interface to PDF rendering library
COMMENT-utils= PDF conversion tools and utilities

-V= 26.01.0
+V= 26.02.0
DISTNAME= poppler-$V
CATEGORIES= print
PKGNAME-main= poppler-$V
@@ -13,8 +13,8 @@ PKGNAME-qt6= poppler-qt6-$V

EXTRACT_SUFX= .tar.xz

-SHARED_LIBS += poppler 98.0 # 156.0
-SHARED_LIBS += poppler-glib 19.18 # 8.31
+SHARED_LIBS += poppler 99.0 # 157.0
+SHARED_LIBS += poppler-glib 19.19 # 8.31
SHARED_LIBS += poppler-qt5 9.3 # 1.40
SHARED_LIBS += poppler-qt6 2.3 # 3.12
SHARED_LIBS += poppler-cpp 20.0 # 3.0
Index: distinfo
===================================================================
RCS file: /cvs/ports/print/poppler/distinfo,v
diff -u -p -r1.121 distinfo
--- distinfo 9 Jan 2026 19:52:31 -0000 1.121
+++ distinfo 18 Feb 2026 20:27:28 -0000
@@ -1,2 +1,2 @@
-SHA256 (poppler-26.01.0.tar.xz) = HLlEpLiIR/X7ZVFoO8eZ21nwSZD12L4Hq6KsvzhgEIk=
-SIZE (poppler-26.01.0.tar.xz) = 2003516
+SHA256 (poppler-26.02.0.tar.xz) = 3e2GIfey9pXJEGOqsVWGkchBg3TNWDUB6J7TlIfnq3c=
+SIZE (poppler-26.02.0.tar.xz) = 2025588
Index: patches/patch-poppler_XRef_cc
===================================================================
RCS file: /cvs/ports/print/poppler/patches/patch-poppler_XRef_cc,v
diff -u -p -r1.35 patch-poppler_XRef_cc
--- patches/patch-poppler_XRef_cc 19 Jun 2025 20:17:30 -0000 1.35
+++ patches/patch-poppler_XRef_cc 18 Feb 2026 20:27:28 -0000
@@ -1,7 +1,7 @@
Index: poppler/XRef.cc
--- poppler/XRef.cc.orig
+++ poppler/XRef.cc
-@@ -1126,7 +1126,7 @@ bool XRef::isRefEncrypted(Ref r)
+@@ -1123,7 +1123,7 @@ bool XRef::isRefEncrypted(Ref r)

bool XRef::okToPrint(bool ignoreOwnerPW) const
{
@@ -10,23 +10,21 @@ Index: poppler/XRef.cc
}

// we can print at high res if we are only doing security handler revision
-@@ -1134,48 +1134,37 @@ bool XRef::okToPrint(bool ignoreOwnerPW) const
+@@ -1131,47 +1131,37 @@ bool XRef::okToPrint(bool ignoreOwnerPW) const
// 3 and we are allowed to print, and bit 12 is set.
bool XRef::okToPrintHighRes(bool ignoreOwnerPW) const
{
- if (encrypted) {
- if (2 == encRevision) {
- return (okToPrint(ignoreOwnerPW));
-- } else if (encRevision >= 3) {
+- }
+- if (encRevision >= 3) {
- return (okToPrint(ignoreOwnerPW) && (permFlags & permHighResPrint));
-- } else {
-- // something weird - unknown security handler version
-- return false;
- }
-- } else {
-- return true;
+- // something weird - unknown security handler version
+- return false;
- }
-+ return true;
+ return true;
}

bool XRef::okToChange(bool ignoreOwnerPW) const

print/scribus: fix build with new poppler

Hi,

this fixes print/scribus with poppler-26.02.0.

To be committed together with poppler, because I'm not sure wether
I properly kept all the #if's from the upstream commit (there were
some conflicts).

Ciao,
Kili

ps: update for poppler will follow in a few minutes.

Index: patches/patch-scribus_plugins_import_pdf_importpdf_cpp
===================================================================
RCS file: /cvs/ports/print/scribus/patches/patch-scribus_plugins_import_pdf_importpdf_cpp,v
diff -u -p -r1.8 patch-scribus_plugins_import_pdf_importpdf_cpp
--- patches/patch-scribus_plugins_import_pdf_importpdf_cpp 30 Oct 2025 20:57:55 -0000 1.8
+++ patches/patch-scribus_plugins_import_pdf_importpdf_cpp 18 Feb 2026 20:34:37 -0000
@@ -1,9 +1,48 @@
https://github.com/scribusproject/scribus/commit/188d030acd0cb71e89dbb57695fe52158b6a0959
+https://github.com/scribusproject/scribus/commit/28bd3be104c06b9d4532affe150f7b74fe5b3e59

Index: scribus/plugins/import/pdf/importpdf.cpp
--- scribus/plugins/import/pdf/importpdf.cpp.orig
+++ scribus/plugins/import/pdf/importpdf.cpp
-@@ -416,11 +416,11 @@ bool PdfPlug::convert(const QString& fn)
+@@ -79,7 +79,11 @@ QImage PdfPlug::readThumbnail(const QString& fName)
+ bgColor[0] = 255;
+ bgColor[1] = 255;
+ bgColor[2] = 255;
++#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(26, 2, 0)
++ SplashOutputDev dev(splashModeXBGR8, 4, bgColor, true);
++#else
+ SplashOutputDev dev(splashModeXBGR8, 4, false, bgColor, true);
++