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"; + } + + + + } }