My small ASP.NET MVC web application creates a small PDF file and prints on a Label printer.
Could someone help me with how I can create a PDF file with custom page size (ex. 3.5mm x 24mm).
As an example,
- Code: Select all
Spire.Pdf.PdfDocument doc = new PdfDocument();
PdfPageBase page = doc.Pages.Add(PdfPageSize.A4, new PdfMargins(0));
Maybe if I can create a custom PdfPageSize. I might be able to use that instead of PdfPageSize.A4.
Any help appreciated. Thanks