diff -Naur libreoffice-26.2.2.2.orig/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx libreoffice-26.2.2.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
--- libreoffice-26.2.2.2.orig/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx	2026-03-19 17:35:00.000000000 -0400
+++ libreoffice-26.2.2.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx	2026-04-02 09:42:12.524524854 -0400
@@ -1115,7 +1115,7 @@
 }
 
 #if POPPLER_CHECK_VERSION(0, 64, 0)
-void PDFOutDev::drawString(GfxState*, const GooString* /*s*/)
+void PDFOutDev::drawString(GfxState*, const std::string & /*s*/)
 #else
 void PDFOutDev::drawString(GfxState*, GooString* /*s*/)
 #endif
diff -Naur libreoffice-26.2.2.2.orig/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx libreoffice-26.2.2.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
--- libreoffice-26.2.2.2.orig/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx	2026-03-19 17:35:00.000000000 -0400
+++ libreoffice-26.2.2.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx	2026-04-02 09:42:12.523123401 -0400
@@ -261,7 +261,7 @@
                               CharCode code, int nBytes, Unicode *u, int uLen) override;
 #endif
 #if POPPLER_CHECK_VERSION(0, 64, 0)
-        virtual void drawString(GfxState *state, const GooString *s) override;
+        virtual void drawString(GfxState *state, const std::string & s) override;
 #else
         virtual void drawString(GfxState *state, GooString *s) override;
 #endif
