1 From 557ee0a0f4e40b934c72515f41f3a605803ddb1d Mon Sep 17 00:00:00 2001
2 From: Evangelos Foutras <evangelos@foutrelis.com>
3 Date: Wed, 24 Oct 2018 17:48:53 +0300
4 Subject: [PATCH] fix build with poppler 0.70
7 sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx | 4 ++++
8 sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx | 4 ++++
9 2 files changed, 8 insertions(+)
11 diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
12 index 575a90acb..99219f7e6 100644
13 --- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
14 +++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
15 @@ -578,7 +578,11 @@ void PDFOutDev::restoreState(GfxState*)
16 printf( "restoreState\n" );
19 +#if POPPLER_CHECK_VERSION(0, 70, 0)
20 +void PDFOutDev::setDefaultCTM(const double *pMat)
22 void PDFOutDev::setDefaultCTM(double *pMat)
27 diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
28 index da021a2a0..27440f2bb 100644
29 --- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
30 +++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
31 @@ -166,7 +166,11 @@ namespace pdfi
32 //----- initialization and control
34 // Set default transform matrix.
35 +#if POPPLER_CHECK_VERSION(0, 70, 0)
36 + virtual void setDefaultCTM(const double *ctm) override;
38 virtual void setDefaultCTM(double *ctm) override;
42 virtual void startPage(int pageNum, GfxState *state