From bd565960ba80c799fbb8af9886bb914fa5804fe2 Mon Sep 17 00:00:00 2001 From: Elias Fierke Date: Mon, 11 May 2026 17:42:14 +0200 Subject: [PATCH] [chore:] running sheet creation call --- Tasks/PdfBuilder.cs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Tasks/PdfBuilder.cs b/Tasks/PdfBuilder.cs index d33a587..880a46a 100644 --- a/Tasks/PdfBuilder.cs +++ b/Tasks/PdfBuilder.cs @@ -105,6 +105,11 @@ public class PdfBuilder } CreateAddressLabelPdfWithPlaceholder(addresses, placeholderText, outputPath); + + if (_settings.exportRunningSheets) + { + ExportRunningSheets(addressSetId, outputPath); + } } /// @@ -387,4 +392,20 @@ public class PdfBuilder if (left < 0 || top < 0 || right < 0 || bottom < 0) throw new ArgumentException("Margins cannot be negative"); } + + public void ExportRunningSheets(int setID, string path) + { + if (path.EndsWith(".pdf")) + { + path = path.Substring(0, path.Length - 4); + path = path + "-Laufzettel.pdf"; + } + else + { + path = path + "-Laufzettel.pdf"; + } + + + + } }