summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJonathan Bauer2014-05-28 15:30:38 +0200
committerJonathan Bauer2014-05-28 15:30:38 +0200
commitf49da762eb8bb97a05dfdac82c114b35a9fe7cc1 (patch)
tree965fc1d210a9341c9a311208d7b1a26d91892b2b /src
parent[printpwgui] rename helper_error to helper_messageBox, show messageBox if pri... (diff)
downloadprintergui-f49da762eb8bb97a05dfdac82c114b35a9fe7cc1.tar.gz
printergui-f49da762eb8bb97a05dfdac82c114b35a9fe7cc1.tar.xz
printergui-f49da762eb8bb97a05dfdac82c114b35a9fe7cc1.zip
psgray is dead. ps2write + options for grayscale
This takes forever ... maybe there is faster way?
Diffstat (limited to 'src')
-rw-r--r--src/maingui/printergui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/maingui/printergui.cpp b/src/maingui/printergui.cpp
index f3a0b85..6f72b15 100644
--- a/src/maingui/printergui.cpp
+++ b/src/maingui/printergui.cpp
@@ -164,7 +164,7 @@ void PrinterGui::on_buttonPrint_clicked()
// Schieb file durch ghostscript
if (ui->comboBoxColor->isEnabled() && ui->comboBoxColor->currentIndex() == 0) {
// Run ghostscript to make file grayscale
- cmd = QString::fromUtf8("gs -sDEVICE=psgray -dNOPAUSE -dBATCH -dQUIET -dSAFER -sOutputFile=\"%1.conv\" \"%1\"")
+ cmd = QString::fromUtf8("gs -sDEVICE=ps2write -sProcessColorModel=DeviceGray -sColorConversionStrategy=/Gray -dNOPAUSE -dBATCH -dQUIET -dSAFER -sOutputFile=\"%1.conv\" \"%1\"")
.arg(QString::fromUtf8(this->file));
if (system(cmd.toUtf8().constData())) {
QMessageBox::critical(this, "PrinterGUI", "Kann Druckauftrag nicht in Graustufen konvertieren.");