From e693f831524361eb753a36b4e57666bbbb48e3bd Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Thu, 29 Feb 2024 16:13:28 +0100 Subject: [PATCH] Document: Overwrite any other file in SaveTo() --- Elwig/Documents/Document.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Elwig/Documents/Document.cs b/Elwig/Documents/Document.cs index 12359bb..40aad77 100644 --- a/Elwig/Documents/Document.cs +++ b/Elwig/Documents/Document.cs @@ -133,7 +133,7 @@ namespace Elwig.Documents { public void SaveTo(string pdfPath) { if (PdfPath == null) throw new InvalidOperationException("Pdf file has not been generated yet"); - File.Copy(PdfPath, pdfPath); + File.Copy(PdfPath, pdfPath, true); } public async Task Print(int copies = 1) {