Commit 2e26fef2 authored by Radek Hušek's avatar Radek Hušek
Browse files

do not staple unless pdfbook is checked

parent ac0d5019
......@@ -228,12 +228,13 @@ class CPP(QWidget):
pipeline.append([ "%s/pdfcrop_wrapper.sh" % DIR,
"--margin", margin, "-", "/dev/stdout" ])
if self._pdfbook.isChecked():
pipeline.append([ "pdfbook", "/dev/stdin", "-o", "/dev/stdout" ])
if self._compact.isChecked():
self._duplex.setCurrentIndex(1)
pipeline.append([ "%s/print_compact.sh" % DIR,
"%i" % self._compact_copies.value() ])
elif self._pdfbook.isChecked():
self._duplex.setCurrentIndex(1)
pipeline.append([ "pdfbook", "/dev/stdin", "-o", "/dev/stdout" ])
if self._printer.currentData() is self._save_as_file:
f = QFileDialog.getSaveFileName(self, 'Save as ...')
......@@ -243,7 +244,7 @@ class CPP(QWidget):
else:
cmd = self._printer.currentData().copy()
cmd += [ "-o", self._duplex.currentData() ]
if self._staple.isChecked():
if self._pdfbook.isChecked() and self._staple.isChecked():
cmd += [ "-o", "XRFold=BiFoldStaple" ]
cmd.append("-")
pipeline.append(cmd)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment