Documents/Pdf: Add /s to PdfToPrinter call
This commit is contained in:
@ -59,6 +59,7 @@ namespace Elwig.Documents {
|
|||||||
public static async Task Print(string path, int copies = 1) {
|
public static async Task Print(string path, int copies = 1) {
|
||||||
var p = new Process() { StartInfo = new() { FileName = PdfToPrinter } };
|
var p = new Process() { StartInfo = new() { FileName = PdfToPrinter } };
|
||||||
p.StartInfo.ArgumentList.Add(path);
|
p.StartInfo.ArgumentList.Add(path);
|
||||||
|
p.StartInfo.ArgumentList.Add("/s");
|
||||||
p.StartInfo.ArgumentList.Add($"copies={copies}");
|
p.StartInfo.ArgumentList.Add($"copies={copies}");
|
||||||
p.Start();
|
p.Start();
|
||||||
await p.WaitForExitAsync();
|
await p.WaitForExitAsync();
|
||||||
|
@ -890,8 +890,7 @@ namespace Elwig.Windows {
|
|||||||
if (App.Config.Debug) {
|
if (App.Config.Debug) {
|
||||||
doc.Show();
|
doc.Show();
|
||||||
} else {
|
} else {
|
||||||
await doc.Print(2);
|
doc.Print(2);
|
||||||
Activate();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
FinishButton.Cursor = null;
|
FinishButton.Cursor = null;
|
||||||
|
Reference in New Issue
Block a user