Net4x.iTextSharp.Pdfa 6.1.0.26251

dotnet add package Net4x.iTextSharp.Pdfa --version 6.1.0.26251
                    
NuGet\Install-Package Net4x.iTextSharp.Pdfa -Version 6.1.0.26251
                    
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="Net4x.iTextSharp.Pdfa" Version="6.1.0.26251" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Net4x.iTextSharp.Pdfa" Version="6.1.0.26251" />
                    
Directory.Packages.props
<PackageReference Include="Net4x.iTextSharp.Pdfa" />
                    
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 Net4x.iTextSharp.Pdfa --version 6.1.0.26251
                    
#r "nuget: Net4x.iTextSharp.Pdfa, 6.1.0.26251"
                    
#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 Net4x.iTextSharp.Pdfa@6.1.0.26251
                    
#: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=Net4x.iTextSharp.Pdfa&version=6.1.0.26251
                    
Install as a Cake Addin
#tool nuget:?package=Net4x.iTextSharp.Pdfa&version=6.1.0.26251
                    
Install as a Cake Tool

Net4x.iTextSharp.Pdfa

PDF/A support for Net4x.iTextSharp.Common, the SDK-style repackaging of iTextSharp 5.5.13. It adds the conformance checkers and the PDF/A-aware writer, stamper and copy classes, so documents can be produced against PDF/A‑1, ‑2 and ‑3 and are validated as they are written.

Package id Net4x.iTextSharp.Pdfa
Assembly Net4x.iTextSharp.Pdfa.dll (strong-named)
Target frameworks net40, net45, netstandard2.0
Depends on Net4x.iTextSharp.Common

Installing

dotnet add package Net4x.iTextSharp.Pdfa

Quick start

A PDF/A document needs three things the base library does not require: an XMP metadata packet, an output intent carrying an embedded ICC profile, and embedded fonts.

using iTextSharp.text;
using iTextSharp.text.pdf;

using var output = new FileStream("invoice.pdf", FileMode.Create);
var document = new Document();
var writer = PdfAWriter.GetInstance(document, output, PdfAConformanceLevel.PDF_A_1B);

writer.CreateXmpMetadata();
document.Open();

// The destination output profile: any valid ICC profile for the target device.
writer.SetOutputIntents("Custom", null, "http://www.color.org", "sRGB IEC61966-2.1",
    File.ReadAllBytes("sRGB.icc"));

// Every font must be embedded - the standard 14 fonts are not allowed.
var baseFont = BaseFont.CreateFont("fonts/OpenSans-Regular.ttf",
    BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
document.Add(new Paragraph("Conforming text", new Font(baseFont, 12)));

document.Close();

Anything that violates the selected level throws PdfAConformanceException at the moment it is written, so problems surface during generation instead of at validation time:

try
{
    document.Add(new Paragraph("text", FontFactory.GetFont(FontFactory.HELVETICA, 12)));
}
catch (PdfAConformanceException e)
{
    // "All the fonts must be embedded. This one isn't: Helvetica"
}

What is in the box

Type Purpose
PdfAWriter PdfWriter that validates as it writes and stamps the PDF/A identification into the XMP packet
PdfAStamper PdfStamper for editing an existing PDF/A file while keeping conformance
PdfACopy / PdfASmartCopy merge PDF/A documents; both refuse sources that are not PDF/A
PdfAConformanceLevel PDF_A_1A, PDF_A_1B, PDF_A_2A, PDF_A_2B, PDF_A_2U, PDF_A_3A, PDF_A_3B, PDF_A_3U, plus the ZUGFeRD levels
PdfAConformanceException thrown on the first violation, carrying the offending object
PdfARadioCheckField radio and check-box widgets with PDF/A-safe appearances
PdfAXmpWriter, PdfAProperties, PdfASchema the pdfaid XMP schema
ZugferdChecker additional checks for ZUGFeRD invoices (PDF/A‑3 with an embedded XML invoice)

All of these live in the usual iTextSharp.text.pdf, iTextSharp.text.pdf.intern and iTextSharp.text.xml.xmp namespaces, alongside the base library.

Which conformance level

  • PDF/A‑1 (PDF 1.4) — the strictest and most widely accepted. 1b guarantees visual reproduction, 1a additionally requires a tagged, logically structured document.
  • PDF/A‑2 (PDF 1.7) — adds JPEG 2000, transparency, layers and embedding of other PDF/A files.
  • PDF/A‑3 (PDF 1.7) — as ‑2, but any file type may be embedded. This is the basis of ZUGFeRD and Factur-X electronic invoices.

The a levels also require writer.SetTagged() and accessible structure; the b levels do not.

Things the checkers enforce

The checkers are the same ones as upstream iText 5. Among the rules you will meet first:

  • every font must be embedded, so the standard 14 fonts are rejected;
  • exactly one PDF/A output intent, whose ICC profile must be a printer (prtr) or monitor (mntr) device class;
  • no transparency or blend modes in PDF/A‑1;
  • no encryption, no JavaScript, no external content references;
  • device-dependent colour is only allowed when a matching output intent is present.

Licence

iText 5 / iTextSharp is licensed under the GNU Affero General Public License v3 with the additional terms shipped alongside the source. AGPL section 7(b) requires that the iText producer line is retained in every PDF the library creates or manipulates. If you cannot comply with the AGPL you must obtain a commercial licence from iText Group NV.

Copyright © 1998‑2022 iText Group NV. This package only repackages that work; it is not affiliated with or endorsed by iText Group NV.

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 was computed.  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 was computed.  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 net40 is compatible.  net403 was computed.  net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  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 (2)

Showing the top 2 NuGet packages that depend on Net4x.iTextSharp.Pdfa:

Package Downloads
Net4x.PdfCompressorLibrary

Pdf Compressor library

Net4x.PdfToPdfA.iTextSharp

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
6.1.0.26251 156 9/10/2026
6.1.0 625 4/4/2025
5.5.14 669 8/27/2023