File xpdf-poppler-ps-duplex-parameter.patch of Package xpdf-poppler

Index: xpdf-poppler/XPDFViewer.cc
===================================================================
--- xpdf-poppler.orig/XPDFViewer.cc
+++ xpdf-poppler/XPDFViewer.cc
@@ -3687,7 +3687,7 @@ void XPDFViewer::printPrintCbk(Widget wi
   {
     psOut = new PSOutputDev(psFileName->getCString(), doc, doc->getXRef(),
           doc->getCatalog(), NULL, firstPage, lastPage,
-          psModePS);
+          psModePS, -1, -1, globalParamsGUI->getPSDuplex());
     if (psOut->isOk()) {
       doc->displayPages(psOut, firstPage, lastPage, 72, 72,
             0, true, globalParamsGUI->getPSCrop(), false);
@@ -3732,7 +3732,7 @@ void XPDFViewer::printPrintCbk(Widget wi
       for (i=beginPage;; i+=step)
       {
         psOut = new PSOutputDev(psFileName->getCString(), doc, doc->getXRef(),
-              doc->getCatalog(), NULL, i, i, psModePS);
+              doc->getCatalog(), NULL, i, i, psModePS, -1, -1, globalParamsGUI->getPSDuplex());
         if (psOut->isOk()) {
           doc->displayPages(psOut, i, i, 72, 72,
                 0, true, globalParamsGUI->getPSCrop(), false);
openSUSE Build Service is sponsored by