diff -Nru gdal-3.11.4-orig/frmts/pdf/pdfobject.cpp gdal-3.11.4-patched/frmts/pdf/pdfobject.cpp
--- gdal-3.11.4-orig/frmts/pdf/pdfobject.cpp	2025-09-04 06:00:21.000000000 -0400
+++ gdal-3.11.4-patched/frmts/pdf/pdfobject.cpp	2025-10-11 12:04:54.352235360 -0400
@@ -1437,7 +1437,7 @@
 
 static char *GooStringToCharStart(GooString &gstr)
 {
-    auto nLength = gstr.getLength();
+    auto nLength = gstr.size();
     if (nLength)
     {
         char *pszContent = static_cast<char *>(VSI_MALLOC_VERBOSE(nLength + 1));
@@ -1514,7 +1514,7 @@
                  "GDALPDFStreamPoppler::GetRawBytes(): %s", e.what());
         return nullptr;
     }
-    m_nRawLength = gstr.getLength();
+    m_nRawLength = gstr.size();
     return GooStringToCharStart(gstr);
 }
 
