The Debug property, previously marked as obsolete in WorkerOptions, has been removed. Debugging should now be managed through ILogger-based logging instead of this flag.
26 lines
743 B
C#
26 lines
743 B
C#
using EnvelopeGenerator.ServiceHost.Jobs.FinalizeDocument;
|
|
using System.Drawing;
|
|
|
|
namespace EnvelopeGenerator.ServiceHost.Jobs;
|
|
|
|
public class WorkerOptions
|
|
{
|
|
public string GdPictureLicenseKey { get; set; } = null!;
|
|
|
|
public PDFBurnerOptions PdfBurner { get; set; } = new();
|
|
|
|
public record PDFBurnerOptions
|
|
{
|
|
public List<string> IgnoredLabels { get; set; } = ["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;
|
|
|
|
public FontStyle FontStyle { get; set; } = FontStyle.Italic;
|
|
}
|
|
} |