Documents/Pdf: Add /s to PdfToPrinter call

This commit is contained in:
lorenz.stechauner committed 2023-09-28 20:05:29 +02:00
1 parent aadf536d13
commit 2bf850bc55
2 files changed
+2 -2

No files matched your search

+1
View File
@@ -59,6 +59,7 @@ namespace Elwig.Documents {
public static async Task Print(string path, int copies = 1) {
var p = new Process() { StartInfo = new() { FileName = PdfToPrinter } };
p.StartInfo.ArgumentList.Add(path);
p.StartInfo.ArgumentList.Add("/s");
p.StartInfo.ArgumentList.Add($"copies={copies}");
p.Start();
await p.WaitForExitAsync();