Index: sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx =================================================================== --- sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx.orig +++ sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx @@ -181,7 +181,11 @@ namespace pdfi virtual void setDefaultCTM(double *ctm) SAL_OVERRIDE; // Start a page. - virtual void startPage(int pageNum, GfxState *state) SAL_OVERRIDE; + virtual void startPage(int pageNum, GfxState *state +#if POPPLER_CHECK_VERSION(0, 23, 0) + , XRef *xref +#endif + ) SAL_OVERRIDE; // End a page. virtual void endPage() SAL_OVERRIDE; Index: sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx =================================================================== --- sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx.orig +++ sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx @@ -481,7 +481,11 @@ PDFOutDev::PDFOutDev( PDFDoc* pDoc ) : { } -void PDFOutDev::startPage(int /*pageNum*/, GfxState* state) +void PDFOutDev::startPage(int /*pageNum*/, GfxState* state +#if POPPLER_CHECK_VERSION(0, 23, 0) + , XRef* /*xref*/ +#endif +) { assert(state); printf("startPage %f %f\n",