diff --git a/poppler-22-04-0.patch b/poppler-22-04-0.patch index 6ee941a..d884c6f 100644 --- a/poppler-22-04-0.patch +++ b/poppler-22-04-0.patch @@ -77,10 +77,22 @@ Index: libreoffice-7.3.3.1/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx if( it == m_aFontMap.end() ) { +#if POPPLER_CHECK_VERSION(22, 04, 0) -+ nEmbedSize = parseFont( fontID, gfxFont->get(), state ); ++ nEmbedSize = parseFont( fontID, gfxFont.get(), state ); +#else nEmbedSize = parseFont( fontID, gfxFont, state ); +#endif it = m_aFontMap.find( fontID ); } +@@ -806,7 +837,11 @@ void PDFOutDev::updateFont(GfxState *sta + + if (nEmbedSize) + { ++#if POPPLER_CHECK_VERSION(22, 04, 0) ++ writeFontFile(gfxFont.get()); ++#else + writeFontFile(gfxFont); ++#endif + } + } +