summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2014-08-08 22:26:26 (GMT)
committerFrederik Gladhorn <frederik.gladhorn@digia.com>2014-08-08 22:26:26 (GMT)
commit4efd43253764caa133a0b24f90167cb6ec0b2e56 (patch)
tree2eca494c70f4a6edc44250b5828481bbc865320c
parent4cf3df32e349c361dbe8304ae3cdd683bbc2da48 (diff)
Disable PostScript printing
-rw-r--r--core/fileprinter.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/core/fileprinter.cpp b/core/fileprinter.cpp
index 117e7ab..dd41075 100644
--- a/core/fileprinter.cpp
+++ b/core/fileprinter.cpp
@@ -99,11 +99,13 @@ int FilePrinter::doPrintFiles( QPrinter &printer, QStringList fileList, FileDele
argList << fileList[0] << printer.outputFileName();
kDebug(OkularDebug) << "Executing" << exe << "with arguments" << argList;
ret = KProcess::execute( exe, argList );
- } else if ( inputFileInfo.suffix() == "pdf" && printer.outputFormat() == QPrinter::PostScriptFormat && pdf2psAvailable() ) {
- exe = "pdf2ps";
- argList << fileList[0] << printer.outputFileName();
- kDebug(OkularDebug) << "Executing" << exe << "with arguments" << argList;
- ret = KProcess::execute( exe, argList );
+
+#pragma("KF5: Fix PostScript printing")
+// } else if ( inputFileInfo.suffix() == "pdf" && printer.outputFormat() == QPrinter::PostScriptFormat && pdf2psAvailable() ) {
+// exe = "pdf2ps";
+// argList << fileList[0] << printer.outputFileName();
+// kDebug(OkularDebug) << "Executing" << exe << "with arguments" << argList;
+// ret = KProcess::execute( exe, argList );
} else {
ret = -5;
}