using EnvelopeGenerator.Application.Common.Interfaces.Model; using System.Diagnostics.CodeAnalysis; using System.Drawing; namespace EnvelopeGenerator.Application.Common.Configurations; /// /// /// public class PDFBurnerParams : ITextStyle { /// /// /// public int ConcurrencyLimit { get; set; } = 5; /// /// /// public IEnumerable IgnoredLabels { get; set; } = new List { "Date", "Datum", "ZIP", "PLZ", "Place", "Ort", "Position", "Stellung" }; /// /// /// public double TopMargin { get; set; } = 0.1; /// /// /// public double YOffset { get; set; } = -0.3; /// /// /// public string FontName { get; set; } = "Arial"; /// /// /// public int FontSize { get; set; } = 8; /// /// /// [SuppressMessage("Interoperability", "CA1416:Validate platform compatibility", Justification = "")] public FontStyle FontStyle { get; set; } = FontStyle.Italic; /// /// /// public Dictionary IndexOfAnnot { get; init; } = new() { { string.Empty, 0 }, { "seal", 0 }, { "position", 1 }, { "city", 2 }, { "date", 3 } }; /// /// /// public int DefaultIndexOfAnnot { get; set; } = 0; /// /// /// /// /// public int GetAnnotationIndex(string name) => IndexOfAnnot.TryGetValue(name, out var value) ? value : DefaultIndexOfAnnot; }