OfficeIMO.Invoicing.Pdf
3.4.3
Prefix Reserved
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
<PackageReference Include="OfficeIMO.Invoicing.Pdf" Version="3.4.3" />
<PackageVersion Include="OfficeIMO.Invoicing.Pdf" Version="3.4.3" />
<PackageReference Include="OfficeIMO.Invoicing.Pdf" />
paket add OfficeIMO.Invoicing.Pdf --version 3.4.3
#r "nuget: OfficeIMO.Invoicing.Pdf, 3.4.3"
#:package OfficeIMO.Invoicing.Pdf@3.4.3
#addin nuget:?package=OfficeIMO.Invoicing.Pdf&version=3.4.3
#tool nuget:?package=OfficeIMO.Invoicing.Pdf&version=3.4.3
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 | Versions 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. |
-
.NETFramework 4.7.2
- OfficeIMO.Invoicing (>= 3.4.3)
- OfficeIMO.Pdf (>= 3.4.3)
-
.NETStandard 2.0
- OfficeIMO.Invoicing (>= 3.4.3)
- OfficeIMO.Pdf (>= 3.4.3)
-
net10.0
- OfficeIMO.Invoicing (>= 3.4.3)
- OfficeIMO.Pdf (>= 3.4.3)
-
net8.0
- OfficeIMO.Invoicing (>= 3.4.3)
- OfficeIMO.Pdf (>= 3.4.3)
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.