summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CHURLAUD <olivier@churlaud.com>2016-07-21 18:33:04 (GMT)
committerOlivier CHURLAUD <olivier@churlaud.com>2016-07-21 18:33:04 (GMT)
commit33122dd8252cb1a87f1708142332bc15b6c6f0d1 (patch)
treec7547ef057ac1d9de44ffc8ccfdfa836404823ab
parentdfae933ae926226c78decda7654057afb56afa9e (diff)
Uncomment printing option pdf2ps
-rw-r--r--core/fileprinter.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/core/fileprinter.cpp b/core/fileprinter.cpp
index 04b5289..157c427 100644
--- a/core/fileprinter.cpp
+++ b/core/fileprinter.cpp
@@ -96,13 +96,11 @@ int FilePrinter::doPrintFiles( QPrinter &printer, QStringList fileList, FileDele
argList << fileList[0] << printer.outputFileName();
qCDebug(OkularCoreDebug) << "Executing" << exe << "with arguments" << argList;
ret = KProcess::execute( exe, argList );
-
-#pragma message("KF5: Fix PostScript printing")
-// } else if ( inputFileInfo.suffix() == "pdf" && printer.outputFormat() == QPrinter::PostScriptFormat && pdf2psAvailable() ) {
-// exe = "pdf2ps";
-// argList << fileList[0] << printer.outputFileName();
-// qCDebug(OkularCoreDebug) << "Executing" << exe << "with arguments" << argList;
-// ret = KProcess::execute( exe, argList );
+ } else if ( inputFileInfo.suffix() == "pdf" && printer.outputFormat() == QPrinter::NativeFormat && pdf2psAvailable() ) {
+ exe = "pdf2ps";
+ argList << fileList[0] << printer.outputFileName();
+ qCDebug(OkularCoreDebug) << "Executing" << exe << "with arguments" << argList;
+ ret = KProcess::execute( exe, argList );
} else {
ret = -5;
}