From 05ba215f153dfa43c6e4ea207ee18e11fb362e29 Mon Sep 17 00:00:00 2001 From: Bradley Newman Date: Sat, 21 Aug 2021 13:20:20 +0930 Subject: [PATCH] Finish implementing #7, small changes to PDFCreator --- Moneybags/HTMLCreator.cs | 2 +- Moneybags/PDFCreator.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Moneybags/HTMLCreator.cs b/Moneybags/HTMLCreator.cs index 2966183..5c18c35 100644 --- a/Moneybags/HTMLCreator.cs +++ b/Moneybags/HTMLCreator.cs @@ -67,7 +67,7 @@ public bool GenerateHTMLFile(Dictionary inputDict) } else { - content = content.Replace("{LOGO}", ""); + content = content.Replace("{LOGO}", ""); } File.WriteAllText("./HTML/Output.html", content); diff --git a/Moneybags/PDFCreator.cs b/Moneybags/PDFCreator.cs index 9c9d22c..91b2e3b 100644 --- a/Moneybags/PDFCreator.cs +++ b/Moneybags/PDFCreator.cs @@ -11,11 +11,11 @@ namespace Moneybags { class PDFCreator { - private string pathToHTML { get; set; } - private Dictionary metadata; + private string PathToHTML { get; set; } + private readonly Dictionary metadata; public PDFCreator(string pathToHTML, Dictionary metadata) { - this.pathToHTML = pathToHTML; + this.PathToHTML = pathToHTML; this.metadata = metadata; } @@ -46,7 +46,7 @@ public bool GeneratePDFFile() ObjectConfig configuration = new ObjectConfig(); configuration .SetAllowLocalContent(true) - .SetPageUri(pathToHTML) + .SetPageUri(PathToHTML) .SetPrintBackground(true) .SetScreenMediaType(true);