Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

PdfInvoiceDocument

Namespace OfficeIMO.Invoicing.Pdf
Assembly OfficeIMO.Invoicing.Pdf
Modifiers sealed

Captures a typed invoice once for visible PDF content and its embedded CII attachment.

Inheritance

  • Object
  • PdfInvoiceDocument

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by

Methods

public static PdfInvoiceDocument Create(Invoice invoice, InvoiceXmlOptions contract, InvoicePdfLayoutOptions layout = null) #
Returns: PdfInvoiceDocument

Creates an independent snapshot for a document type in InvoiceDocumentTypes. Later edits to the supplied invoice cannot change its PDF or XML.

Parameters

invoice OfficeIMO.Invoicing.Invoice requiredposition: 0
contract OfficeIMO.Invoicing.InvoiceXmlOptions requiredposition: 1
layout OfficeIMO.Invoicing.Pdf.InvoicePdfLayoutOptions = null optionalposition: 2
public Invoice ToInvoice() #
Returns: Invoice

Returns an independent editable model. After edits, call InvoicePdfLayoutOptions) with an explicit contract preserving this snapshot's release and profile.

ToPdfBytes 2 overloads
public Byte[] ToPdfBytes(PdfOptions options = null) #
Returns: Byte[]

Renders the captured invoice and attaches its exact CII XML using Factur-X PDF/A-3 groundwork. Supply embedded fonts through the PDF options. Validate the exact output with PDF/A and invoice validators before claiming compliance.

Parameters

options OfficeIMO.Pdf.PdfOptions = null optionalposition: 0
public Byte[] ToPdfBytes(PdfOptions options, CancellationToken cancellationToken) #
Returns: Byte[]

Renders the captured hybrid invoice with cancellation support.

Parameters

options OfficeIMO.Pdf.PdfOptions requiredposition: 0
cancellationToken System.Threading.CancellationToken requiredposition: 1
ToPresentationPdfBytes 2 overloads
public Byte[] ToPresentationPdfBytes(PdfOptions options = null) #
Returns: Byte[]

Renders the captured invoice as a presentation-only PDF without attaching CII XML. Use PdfOptions) when a Factur-X/ZUGFeRD hybrid document is required.

Parameters

options OfficeIMO.Pdf.PdfOptions = null optionalposition: 0
public Byte[] ToPresentationPdfBytes(PdfOptions options, CancellationToken cancellationToken) #
Returns: Byte[]

Renders the presentation-only invoice with cancellation support.

Parameters

options OfficeIMO.Pdf.PdfOptions requiredposition: 0
cancellationToken System.Threading.CancellationToken requiredposition: 1
public Byte[] ToXmlBytes() #
Returns: Byte[]

Returns a defensive copy of the exact CII bytes embedded in generated PDFs.

Properties

public String Number { get; } #

Captured invoice number.

public InvoiceProfile Profile { get; } #

Captured CII authoring profile. Pass this value to InvoicePdfLayoutOptions) when recapturing an edited model.

public InvoiceSpecificationRelease Release { get; } #

Captured specification release. Preserve it when recapturing an edited model.

public Decimal PayableAmount { get; } #

Captured amount due in the document currency.