diff --git a/ViewModels/MainViewModel.cs b/ViewModels/MainViewModel.cs index 73613e0..f541ada 100644 --- a/ViewModels/MainViewModel.cs +++ b/ViewModels/MainViewModel.cs @@ -490,10 +490,10 @@ class MainViewModel : BaseViewModel, IFontResolver }; LogInfo("Rendering document..."); pdfRenderer.RenderDocument(); - string filename = Path.Join(folderPath, outputFileName); + string outputPDFFileName = Path.Join(folderPath, outputFileName); LogInfo("Saving document to disk..."); - pdfRenderer.PdfDocument.Save(filename); - LogInfo("Saved PDF output to: " + filename); + pdfRenderer.PdfDocument.Save(outputPDFFileName); + LogInfo("Saved PDF output to: " + outputPDFFileName); await CreateAndSaveReportObjectAfterReportCreation(); IsCreatingPDF = false; return;