Documents: Replace Razor templates with iText
All checks were successful
Test / Run tests (push) Successful in 2m24s

This commit is contained in:
2026-03-16 15:09:47 +01:00
parent d8c967b2f2
commit 8054a024f4
61 changed files with 2291 additions and 2924 deletions

View File

@@ -32,9 +32,6 @@ namespace Elwig {
public static readonly string MailsPath = Path.Combine(DataPath, "mails");
public static readonly string ConfigPath = Path.Combine(DataPath, "config.ini");
public static readonly string InstallPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), "Elwig");
public static readonly string DocumentsPath = (Assembly.GetEntryAssembly()?.Location.Contains(@"\bin\") ?? false) ?
Path.Combine(Assembly.GetEntryAssembly()!.Location.Split(@"\bin\")[0], "../Elwig/Documents") :
Path.Combine(InstallPath, "resources/Documents");
public static readonly string TempPath = Path.Combine(Path.GetTempPath(), "Elwig");
public static Config Config { get; private set; } = new(ConfigPath);
@@ -123,7 +120,6 @@ namespace Elwig {
return Task.CompletedTask;
});
Utils.RunBackground("HTML Initialization", () => Html.Init());
Utils.RunBackground("PDF Initialization", () => Pdf.Init());
Utils.RunBackground("JSON Schema Initialization", BillingData.Init);