diff --git a/Tasks/PdfBuilder.cs b/Tasks/PdfBuilder.cs index 86be8b8..17c4073 100644 --- a/Tasks/PdfBuilder.cs +++ b/Tasks/PdfBuilder.cs @@ -83,35 +83,6 @@ public class PdfBuilder CreateAddressLabelPdfWithPlaceholder(addresses, placeholderText, outputPath); } - /// - /// Creates a PDF document with address stickers in a 3×7 grid layout on A4 pages. - /// - /// Array of addresses (from CreateFinalMarkdownString) - /// Path where the PDF should be saved - public void CreateAddressLabelPdf(List addresses, string outputPath) - { - if (addresses == null || addresses.Count == 0) - throw new ArgumentException("Addresses array cannot be null or empty"); - - var document = new PdfDocument(); - - var addressIndex = 0; - while (addressIndex < addresses.Count) - { - var page = document.AddPage(); - page.Size = PageSize.A4; - - using (var gfx = XGraphics.FromPdfPage(page)) - { - // Draw the grid and fill cells - DrawPage(gfx, addresses, ref addressIndex); - } - } - - // Save the document - document.Save(outputPath); - } - /// /// Creates a PDF document with a single placeholder cell for other information. ///