summaryrefslogtreecommitdiffstats
path: root/tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2015-01-29 19:18:14 +0100
committerSlávek Banko <[email protected]>2015-01-29 19:18:28 +0100
commitc5814e9e4ed980abe663804e6b2bfeb55b8cad26 (patch)
treeab5ad3d0a637fc095ae4e7daa49c55c2a9bf0167 /tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc
parent089caba3647a01874638cd1e3a2c1b039157186c (diff)
downloadtdegraphics-c5814e9e4ed980abe663804e6b2bfeb55b8cad26.tar.gz
tdegraphics-c5814e9e4ed980abe663804e6b2bfeb55b8cad26.zip
Add support for poppler 0.30
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 8cf503a6f85234943733d2ca59505898e97053fe)
Diffstat (limited to 'tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc')
-rw-r--r--tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc9
1 files changed, 8 insertions, 1 deletions
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<int> pageList, double
bool Document::print(const TQString &file, TQValueList<int> pageList, double hDPI, double vDPI, int rotate, int paperWidth, int paperHeight)
{
-#if defined(HAVE_POPPLER_020)
+#if defined(HAVE_POPPLER_030)
+ std::vector<int> pages;
+ TQValueList<int>::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);