InvoicePdfLanguagePack
OfficeIMO.Invoicing.Pdf
Defines the culture and generated labels for one invoice presentation language.
Inheritance
- object
- InvoicePdfLanguagePack
Usage
Explore 4 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 4
Methods
public static InvoicePdfLanguagePack Create(string cultureName, IReadOnlyDictionary<InvoicePdfText, string> labels) #Creates a custom pack. Missing entries deliberately fall back to English so callers can override only the labels they own.
Parameters
- cultureName string
- labels System.Collections.Generic.IReadOnlyDictionary<OfficeIMO.Invoicing.Pdf.InvoicePdfText, string>
Returns
InvoicePdfLanguagePackpublic static InvoicePdfLanguagePack ForCulture(string cultureName) #Creates a pack for a supported built-in language. English, German, Polish, French, Spanish, Italian, Dutch, Portuguese, Czech, and Slovak are supported; regional culture names use the matching language translation.
Parameters
- cultureName string
Returns
InvoicePdfLanguagePackpublic string? GetPaymentDescription(string code) #Returns the translated description of a supported UNCL 4461 payment code, or null when unknown.
Parameters
- code string
Returns
string?public string? GetUnitDescription(string code) #Returns the translated description of a supported UN/ECE unit code, or null when unknown.
Parameters
- code string
Returns
string?public InvoicePdfLanguagePack WithCodeDescriptions(IReadOnlyDictionary<string, string>? units = null, IReadOnlyDictionary<string, string>? payments = null) #Creates an independent pack with caller-supplied code descriptions overriding built-in descriptions. Each dictionary accepts up to 512 entries, with codes up to 32 and descriptions up to 256 characters.
Parameters
- units System.Collections.Generic.IReadOnlyDictionary<string, string>? = null
- payments System.Collections.Generic.IReadOnlyDictionary<string, string>? = null
Returns
InvoicePdfLanguagePack