Skip to content

Commit

Permalink
Print manager does not honor the copies parameter #2
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemhall committed Jan 23, 2024
1 parent ef58e26 commit 3ce2fb2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion networkclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ void NetworkClient::downloadPrintFileFinished(QNetworkReply *reply) {
qDebug() << "CHROMING: " << chroming;
QString plexing = job["plexing"].toString();
qDebug() << "PLEXING: " << plexing;
QString copies = job["copies"].toString();
qDebug() << "COPIES: " << copies;

emit requestShowTrayMessage("Libki Print Manager", "Printing job " + jobId);

Expand Down Expand Up @@ -175,7 +177,7 @@ void NetworkClient::downloadPrintFileFinished(QNetworkReply *reply) {

QProcess sumatra;
qDebug() << "PRINTING TO START";
QString command = QString("SumatraPDF.exe -silent -print-settings \"%1,%2\" -print-to \"%3\" \"%4\"").arg(chroming, plexing, physicalPrinterName, tempFile);
QString command = QString("SumatraPDF.exe -silent -print-settings \"%1,%2,%5x\" -print-to \"%3\" \"%4\"").arg(chroming, plexing, physicalPrinterName, tempFile, copies);
qDebug().noquote() << "PRINT COMMAND: " << command;
sumatra.start(command);
sumatra.waitForStarted();
Expand Down

0 comments on commit 3ce2fb2

Please sign in to comment.