Document: Overwrite any other file in SaveTo()
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user