[chore:] running sheet creation call
This commit is contained in:
@@ -105,6 +105,11 @@ public class PdfBuilder
|
||||
}
|
||||
|
||||
CreateAddressLabelPdfWithPlaceholder(addresses, placeholderText, outputPath);
|
||||
|
||||
if (_settings.exportRunningSheets)
|
||||
{
|
||||
ExportRunningSheets(addressSetId, outputPath);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user