From 8cf503a6f85234943733d2ca59505898e97053fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 29 Jan 2015 19:18:14 +0100 Subject: Add support for poppler 0.30 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc') diff --git a/tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc b/tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc index 2e7cc516..081e1035 100644 --- a/tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc +++ b/tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc @@ -317,7 +317,14 @@ bool Document::print(const TQString &fileName, TQValueList pageList, double bool Document::print(const TQString &file, TQValueList pageList, double hDPI, double vDPI, int rotate, int paperWidth, int paperHeight) { -#if defined(HAVE_POPPLER_020) +#if defined(HAVE_POPPLER_030) + std::vector pages; + TQValueList::iterator it; + for (it = pageList.begin(); it != pageList.end(); ++it ) { + pages.push_back(*it); + } + PSOutputDev *psOut = new PSOutputDev(file.latin1(), &(data->doc), NULL, pages, psModePS, paperWidth, paperHeight); +#elif defined(HAVE_POPPLER_020) PSOutputDev *psOut = new PSOutputDev(file.latin1(), &(data->doc), NULL, 1, data->doc.getNumPages(), psModePS, paperWidth, paperHeight); #elif defined(HAVE_POPPLER_016) PSOutputDev *psOut = new PSOutputDev(file.latin1(), &(data->doc), data->doc.getXRef(), data->doc.getCatalog(), NULL, 1, data->doc.getNumPages(), psModePS, paperWidth, paperHeight); -- cgit v1.2.1