based on https://wiki.linuxfromscratch.org/blfs/attachment/ticket/23074/libreoffice-26.2.2.2-poppler_26.04-1.patch --- libreoffice-26.2.2.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx +++ libreoffice-26.2.2.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx @@ -1114,7 +1114,9 @@ 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*/) --- libreoffice-26.2.2.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx +++ libreoffice-26.2.2.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx @@ -260,7 +260,9 @@ 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;