Commit 4efd4325 authored by Frederik Gladhorn's avatar Frederik Gladhorn

Disable PostScript printing

parent 4cf3df32
......@@ -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;
}
......
Markdown is supported
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