diff --git a/editors/libreoffice/files/patch-sdext_source_pdfimport_xpdfwrapper_pdfioutdev__gpl.cxx b/editors/libreoffice/files/patch-sdext_source_pdfimport_xpdfwrapper_pdfioutdev__gpl.cxx new file mode 100644 index 000000000000..369bedbe3ecd --- /dev/null +++ b/editors/libreoffice/files/patch-sdext_source_pdfimport_xpdfwrapper_pdfioutdev__gpl.cxx @@ -0,0 +1,13 @@ +--- sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx.orig 2026-04-17 11:12:42 UTC ++++ sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx +@@ -1114,7 +1114,9 @@ void PDFOutDev::drawChar(GfxState *state, double x, do + printf( "\n" ); + } + +-#if POPPLER_CHECK_VERSION(0, 64, 0) ++#if POPPLER_CHECK_VERSION(26, 4, 0) ++void PDFOutDev::drawString(GfxState*, const std::string& /*s*/) ++#elif POPPLER_CHECK_VERSION(0, 64, 0) + void PDFOutDev::drawString(GfxState*, const GooString* /*s*/) + #else + void PDFOutDev::drawString(GfxState*, GooString* /*s*/) diff --git a/editors/libreoffice/files/patch-sdext_source_pdfimport_xpdfwrapper_pdfioutdev__gpl.hxx b/editors/libreoffice/files/patch-sdext_source_pdfimport_xpdfwrapper_pdfioutdev__gpl.hxx new file mode 100644 index 000000000000..0b382cb9c5a0 --- /dev/null +++ b/editors/libreoffice/files/patch-sdext_source_pdfimport_xpdfwrapper_pdfioutdev__gpl.hxx @@ -0,0 +1,13 @@ +--- sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx.orig 2026-04-17 11:34:08 UTC ++++ sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx +@@ -260,7 +260,9 @@ void setDefaultCTM(const std::array &pMat) + double originX, double originY, + CharCode code, int nBytes, Unicode *u, int uLen) override; + #endif +-#if POPPLER_CHECK_VERSION(0, 64, 0) ++#if POPPLER_CHECK_VERSION(26, 4, 0) ++ virtual void drawString(GfxState *state, const std::string &s) override; ++#elif POPPLER_CHECK_VERSION(0, 64, 0) + virtual void drawString(GfxState *state, const GooString *s) override; + #else + virtual void drawString(GfxState *state, GooString *s) override;