Пример #1
0
 public InvoicerApi(
     SizeOption size = SizeOption.A4,
     OrientationOption orientation = OrientationOption.Portrait,
     string currency = "£"
     )
 {
     Invoice = new Invoice();
     Invoice.Title = "Invoice";
     Invoice.PageSize = size;
     Invoice.PageOrientation = orientation;
     Invoice.Currency = currency;
     Invoice.BillingDate = DateTime.Now;
     Invoice.DueDate = Invoice.BillingDate.AddDays(14);
     Invoice.Reference = DefaultReference;
 }
Пример #2
0
 public PdfInvoice(Invoice invoice)
 {
     Pdf = new Document();
     Invoice = invoice;
 }