Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfCiiInvoiceDocument

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
22fb5b2be3d2 with working tree changes
Modifiers
sealed
Attributes
Fluent

An immutable CII namespace-100 XML document with bounded header editing. Loading does not establish schema, business-rule, tax, or profile compliance.

Inheritance

  • object
  • PdfCiiInvoiceDocument

Usage

Explore 5 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.

Accepted by parameters 2

Methods

Load 3 overloads
public static PdfCiiInvoiceDocument Load(byte[] xml) #

Loads a defensive copy of CII XML. DTDs, external entities and excessive size, depth, nodes and attributes are rejected. Unknown content is retained; namespace prefixes may vary.

Parameters

xml byte[] required
public static PdfCiiInvoiceDocument Load(string path) #

Loads existing CII invoice XML from a file, applying the same limits as byte-array loading.

Parameters

path string required
public static PdfCiiInvoiceDocument Load(Stream stream) #

Loads existing CII invoice XML from the stream's current position to its end. Reads at most the size limit plus one byte and leaves the caller's stream open.

Parameters

stream System.IO.Stream required
Save 2 overloads
public void Save(Stream stream) #

Writes the stored XML bytes at the current position and leaves the caller's stream open.

Parameters

stream System.IO.Stream required
public void Save(string path) #

Saves the stored XML bytes to a file, replacing any existing contents.

Parameters

path string required
public byte[] ToBytes() #

Returns stored XML bytes as a defensive copy. Unedited documents retain byte identity; edited documents use UTF-8 and preserve XML content rather than original lexical formatting.

Returns

byte[]
public PdfCiiInvoiceDocument WithDocumentId(string documentId) #

Replaces one existing, unambiguous plaintext invoice identifier. Other fields and visible PDF content are retained. Signed, structured or missing fields are rejected.

Parameters

documentId string required
public PdfCiiInvoiceDocument WithIssueDate(DateTime issueDate) #

Replaces one existing format-102 issue date. Time/timezone and other dates are retained. Signed XML, ambiguous fields and other date representations are rejected.

Parameters

issueDate System.DateTime required

Properties

public string? DocumentId { get; } #

Invoice identifier from the direct exchanged-document header, if present.

public string? TypeCode { get; } #

Declared document type code, without interpreting its profile validity.

public string? GuidelineId { get; } #

Declared guideline identifier, without claiming that its requirements are satisfied.

public string? CurrencyCode { get; } #

Declared invoice currency, without validating code lists or monetary amounts.

public DateTime? IssueDate { get; } #

Issue date for a valid format-102 calendar date; null for missing or other date representations.

public bool HasXmlSignature { get; } #

Whether an XML Signature element is present. Signatures are not verified by this model.

Fields

public const int MaximumXmlBytes #

Maximum accepted XML byte length, including any byte order mark.

Value: 16777216
public const int MaximumXmlNodes #

Maximum XML nodes retained by the invoice tree.

Value: 100000
public const int MaximumXmlAttributes #

Maximum XML attributes retained by the invoice tree.

Value: 200000