[chore:] removed unused methods
This commit is contained in:
@@ -83,35 +83,6 @@ public class PdfBuilder
|
||||
CreateAddressLabelPdfWithPlaceholder(addresses, placeholderText, outputPath);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a PDF document with address stickers in a 3×7 grid layout on A4 pages.
|
||||
/// </summary>
|
||||
/// <param name="addresses">Array of addresses (from CreateFinalMarkdownString)</param>
|
||||
/// <param name="outputPath">Path where the PDF should be saved</param>
|
||||
public void CreateAddressLabelPdf(List<string> 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a PDF document with a single placeholder cell for other information.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user