diff --git a/Elwig/Helpers/Printing/Pdf.cs b/Elwig/Helpers/Printing/Pdf.cs index 2eefdb0..f270988 100644 --- a/Elwig/Helpers/Printing/Pdf.cs +++ b/Elwig/Helpers/Printing/Pdf.cs @@ -94,7 +94,11 @@ namespace Elwig.Helpers.Printing { public static async Task Print(string path, int copies = 1) { try { - var p = new Process() { StartInfo = new() { FileName = PdfToPrinter } }; + var p = new Process() { StartInfo = new() { + FileName = PdfToPrinter, + CreateNoWindow = true, + UseShellExecute = false, + } }; p.StartInfo.ArgumentList.Add(path); p.StartInfo.ArgumentList.Add("/s"); p.StartInfo.ArgumentList.Add($"copies={copies}");