Update Icons

This commit is contained in:
Andre Beging
2024-11-07 15:25:17 +01:00
parent 6091b54b2a
commit b76dcdb746
6 changed files with 30 additions and 18 deletions

View File

@@ -3,6 +3,7 @@ using System.Net.Mime;
using QuestPDF.Fluent;
using QuestPDF.Helpers;
using QuestPDF.Infrastructure;
using Server.Data;
namespace Server.Model
{
@@ -190,7 +191,12 @@ namespace Server.Model
{
row.RelativeItem().AlignCenter().Column(col =>
{
col.Item().Height(25, Unit.Millimetre).Image("bit.bmp");
if (!string.IsNullOrWhiteSpace(SettingsData.Instance.Logo) && File.Exists(SettingsData.Instance.Logo))
col.Item().Height(25, Unit.Millimetre).Image(SettingsData.Instance.Logo);
else
col.Item().Height(25, Unit.Millimetre);
});
});