OfficeIMO.Invoicing.Pdf 3.4.3

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package OfficeIMO.Invoicing.Pdf --version 3.4.3
                    
NuGet\Install-Package OfficeIMO.Invoicing.Pdf -Version 3.4.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OfficeIMO.Invoicing.Pdf" Version="3.4.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OfficeIMO.Invoicing.Pdf" Version="3.4.3" />
                    
Directory.Packages.props
<PackageReference Include="OfficeIMO.Invoicing.Pdf" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OfficeIMO.Invoicing.Pdf --version 3.4.3
                    
#r "nuget: OfficeIMO.Invoicing.Pdf, 3.4.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package OfficeIMO.Invoicing.Pdf@3.4.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OfficeIMO.Invoicing.Pdf&version=3.4.3
                    
Install as a Cake Addin
#tool nuget:?package=OfficeIMO.Invoicing.Pdf&version=3.4.3
                    
Install as a Cake Tool

OfficeIMO.Invoicing.Pdf

Generate a visible PDF and an embedded CII invoice from one captured typed invoice. This optional adapter depends on OfficeIMO.Invoicing and OfficeIMO.Pdf. XML-only applications can use OfficeIMO.Invoicing; PDF-only applications can use OfficeIMO.Pdf. Neither engine depends on this adapter or on the other engine.

Build and install locally

From the repository root, pack the adapter and its first-party dependencies into a local feed, then add the adapter package to your application:

dotnet pack OfficeIMO.Core/OfficeIMO.Core.csproj -c Release -o artifacts/invoice-feed
dotnet pack OfficeIMO.Pdf/OfficeIMO.Pdf.csproj -c Release -o artifacts/invoice-feed
dotnet pack OfficeIMO.Invoicing/OfficeIMO.Invoicing.csproj -c Release -o artifacts/invoice-feed
dotnet pack OfficeIMO.Invoicing.Pdf/OfficeIMO.Invoicing.Pdf.csproj -c Release -o artifacts/invoice-feed
dotnet add path/to/Application.csproj package OfficeIMO.Invoicing.Pdf --source artifacts/invoice-feed

Targets: .NET Standard 2.0, .NET 8, .NET 10, and .NET Framework 4.7.2. No external PDF renderer or Java runtime is required to generate the documents.

Generate a PDF and its XML from one snapshot

Create a populated invoice using the invoice model example, then capture prices, quantities, VAT breakdowns, adjustments, payments and totals:

using OfficeIMO.Invoicing;
using OfficeIMO.Invoicing.Pdf;
using OfficeIMO.Pdf;

// invoice is a populated OfficeIMO.Invoicing.Invoice.
var snapshot = PdfInvoiceDocument.Create(invoice);
byte[] font = File.ReadAllBytes("invoice-font.ttf");
var options = new PdfOptions()
    .EmbedStandardFont(PdfStandardFont.Helvetica, font, "Invoice font")
    .EmbedStandardFont(PdfStandardFont.HelveticaBold, font, "Invoice font");
File.WriteAllBytes("invoice.xml", snapshot.ToXmlBytes());
File.WriteAllBytes("invoice.pdf", snapshot.ToPdfBytes(options));

Later edits to invoice cannot change the snapshot. ToInvoice() returns an independent editable model. Reuse the captured Profile when creating a new snapshot after edits, including when the original uses XRechnung:

Invoice edited = snapshot.ToInvoice();
edited.Number = "INV-2026-002";
var updated = PdfInvoiceDocument.Create(edited, snapshot.Profile);

The editable model contains business data; the snapshot's Profile identifies its CII guideline. Calling Create(edited) without a profile selects EN 16931. The PDF uses the same declared amounts and calculation as its XML, includes factur-x.xml as an alternative representation, and derives its XMP profile from that attachment. PDF presentation accepts document type 380 (invoice) and 381 (credit note), and rejects other document types before creating the snapshot. The layout includes invoice and credit-note headings, repeated line-table headers, VAT and payable totals, party details, payment instructions and references. Totals stay together when page space permits.

Use pinned XML validation and run veraPDF plus an invoice validator against the exact generated PDF. Font coverage, page layout and external validation remain necessary for the selected content and profile. This API generates English labels and ISO dates; localized templates and additional national profiles are separate capabilities.

The adapter accepts CII authoring profiles EN 16931 (the default) and XRechnung. Other Factur-X levels are inspection-only contracts in the invoice engine, and Peppol BIS authoring requires UBL.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on OfficeIMO.Invoicing.Pdf:

Package Downloads
OfficeIMO.Workflows

Typed local document workflows that compose first-party OfficeIMO conversion, PDF, and provenance capabilities.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.6.2 54 11/18/2026
3.6.1 184 11/10/2026
3.6.0 203 11/6/2026
3.5.3 155 10/31/2026
3.5.2 150 10/24/2026
3.5.1 191 10/16/2026
3.4.5 591 10/10/2026
3.4.4 120 9/27/2026
3.4.3 133 9/12/2026