Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfInvoiceComponent

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
be6c300e4ab1 with working tree changes
Implements
IPdfComponent
Modifiers
sealed

A deterministic invoice recipe implemented over flow paragraphs and tables.

Inheritance

  • object
  • PdfInvoiceComponent

Constructors

public PdfInvoiceComponent(string invoiceNumber, DateTime issueDate, PdfInvoiceParty seller, PdfInvoiceParty customer, IEnumerable<PdfInvoiceLine> lines, string currencyCode = "USD", CultureInfo? culture = null, DateTime? dueDate = null) #

Creates an invoice recipe.

Parameters

invoiceNumber string required
issueDate System.DateTime required
seller OfficeIMO.Pdf.PdfInvoiceParty required
customer OfficeIMO.Pdf.PdfInvoiceParty required
lines System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfInvoiceLine> required
currencyCode string = "USD" optional
culture System.Globalization.CultureInfo? = null optional
dueDate System.DateTime? = null optional

Methods

public void Compose(PdfContentBuilder content) #

Composes this component into the supplied document content.

Parameters

content OfficeIMO.Pdf.PdfContentBuilder required

Properties

public string InvoiceNumber { get; } #

Invoice identifier.

public DateTime IssueDate { get; } #

Issue date.

public DateTime? DueDate { get; } #

Optional due date.

public PdfInvoiceParty Seller { get; } #

Seller identity.

public PdfInvoiceParty Customer { get; } #

Customer identity.

public string CurrencyCode { get; } #

ISO-style currency code placed beside formatted numbers.

public decimal Subtotal { get; } #

Total before tax.

public decimal Tax { get; } #

Total tax.

public decimal Total { get; } #

Total including tax.

public bool CarryTotalsAcrossPages { get; set; } #

When true, a line table that continues on another page closes each page with the carried-forward line total and opens the next page with the brought-forward amount. Defaults to false.