# PdfInvoiceComponent

A deterministic invoice recipe implemented over flow paragraphs and tables.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfInvoiceComponent.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfInvoiceComponent.cs#L60)

**Implements**

`IPdfComponent`

**Modifiers**

sealed

A deterministic invoice recipe implemented over flow paragraphs and tables.

## Inheritance

- object
- PdfInvoiceComponent

Filter members 

Show inherited

## Constructors

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

[PdfInvoiceComponent.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfInvoiceComponent.cs#L60)

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)` [#](#method-compose-officeimo-pdf-pdfcontentbuilder)

[PdfInvoiceComponent.cs:113](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfInvoiceComponent.cs#L113)

Composes this component into the supplied document content.

Parameters

**content OfficeIMO.Pdf.PdfContentBuilder required**

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string InvoiceNumber { get; }` [#](#property-invoicenumber)

[PdfInvoiceComponent.cs:87](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfInvoiceComponent.cs#L87)

Invoice identifier.

`public DateTime IssueDate { get; }` [#](#property-issuedate)

[PdfInvoiceComponent.cs:89](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfInvoiceComponent.cs#L89)

Issue date.

`public DateTime? DueDate { get; }` [#](#property-duedate)

[PdfInvoiceComponent.cs:91](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfInvoiceComponent.cs#L91)

Optional due date.

`public PdfInvoiceParty Seller { get; }` [#](#property-seller)

[PdfInvoiceComponent.cs:93](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfInvoiceComponent.cs#L93)

Seller identity.

`public PdfInvoiceParty Customer { get; }` [#](#property-customer)

[PdfInvoiceComponent.cs:95](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfInvoiceComponent.cs#L95)

Customer identity.

`public string CurrencyCode { get; }` [#](#property-currencycode)

[PdfInvoiceComponent.cs:97](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfInvoiceComponent.cs#L97)

ISO-style currency code placed beside formatted numbers.

`public decimal Subtotal { get; }` [#](#property-subtotal)

[PdfInvoiceComponent.cs:99](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfInvoiceComponent.cs#L99)

Total before tax.

`public decimal Tax { get; }` [#](#property-tax)

[PdfInvoiceComponent.cs:101](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfInvoiceComponent.cs#L101)

Total tax.

`public decimal Total { get; }` [#](#property-total)

[PdfInvoiceComponent.cs:103](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfInvoiceComponent.cs#L103)

Total including tax.

`public bool CarryTotalsAcrossPages { get; set; }` [#](#property-carrytotalsacrosspages)

[PdfInvoiceComponent.cs:109](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Components/PdfInvoiceComponent.cs#L109)

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.

<!-- PowerForge markdown artifact sha256:3C94FD00668478563664DEC9C9F806AC1EBC9FBA23442D4C1A3500A27AA8E33B -->
