Codeuctivity.PdfAValidator 4.0.340

There is a newer version of this package available.
See the version list below for details.
dotnet add package Codeuctivity.PdfAValidator --version 4.0.340
                    
NuGet\Install-Package Codeuctivity.PdfAValidator -Version 4.0.340
                    
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="Codeuctivity.PdfAValidator" Version="4.0.340" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Codeuctivity.PdfAValidator" Version="4.0.340" />
                    
Directory.Packages.props
<PackageReference Include="Codeuctivity.PdfAValidator" />
                    
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 Codeuctivity.PdfAValidator --version 4.0.340
                    
#r "nuget: Codeuctivity.PdfAValidator, 4.0.340"
                    
#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 Codeuctivity.PdfAValidator@4.0.340
                    
#: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=Codeuctivity.PdfAValidator&version=4.0.340
                    
Install as a Cake Addin
#tool nuget:?package=Codeuctivity.PdfAValidator&version=4.0.340
                    
Install as a Cake Tool

Codeuctivity.PdfAValidator

PdfAValidatorApi wraps calls to VeraPdf in a .net standard assembly and as WebApi. Access VeraPdf from your unit tests. Works on Windows, Linux and MacOs.

Sample - e.g. use it in your unit test to check compliance of some pdf:

public static async Task ShouldDetectCompliantPdfA()
{
    using var pdfAValidator = new PdfAValidator();
    var result = await pdfAValidator.ValidateAsync("./TestPdfFiles/FromLibreOffice.pdf");
    Assert.True(result);
}

Sample - e.g. use it in your unit test to check the used sub standard of some pdf:

public static async Task ShouldGetDetailedReportFromPdfA()
{
    using var pdfAValidator = new PdfAValidator();
    var result = await pdfAValidator.ValidateWithDetailedReportAsync("./TestPdfFiles/FromLibreOffice.pdf");
    Assert.True(result.Jobs.Job.ValidationReport.IsCompliant);
    Assert.True(result.Jobs.Job.ValidationReport.ProfileName == "PDF/A-1a validation profile");
}

Sample - e.g. use it in your unit test to check PDF meta data:

 public static async Task ShouldGetFeaturesReportWhenAskingForIt()
 {
     using var pdfAValidator = new PdfAValidator();
     var result = await pdfAValidator.ValidateWithDetailedReportAsync("./TestPdfFiles/FromLibreOffice.pdf", "--extract informationDict");
     var producerEntry = result.Jobs.Job.FeaturesReport.InformationDict.Entries.Single(e => e.Key == "Producer");
     Assert.Equal("LibreOffice 6.1", producerEntry.Value);
 }

Third-party components

This package bundles veraPDF (GPL-3.0-or-later / MPL-2.0) and, for Windows, an OpenJDK 8 JRE (GPL-2.0 with Classpath Exception). See THIRD-PARTY-NOTICES.md for licenses and source code.

Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.345 0 11/29/2026
4.0.340 0 11/28/2026
4.0.333 0 11/28/2026
4.0.327 0 11/28/2026
4.0.325 0 11/28/2026
3.0.308 0 8/4/2026
3.0.305 0 7/21/2026
3.0.302 0 7/18/2026
3.0.299 0 6/22/2026
3.0.296 0 3/2/2026
3.0.295 0 3/2/2026
3.0.294 0 3/2/2026
3.0.275 0 10/24/2025
3.0.258 2 9/30/2024
3.0.253 1 9/29/2024
3.0.248 1 8/27/2024
3.0.245 0 8/21/2024
3.0.242 0 8/20/2024
3.0.237 0 8/2/2024
3.0.234 1 5/22/2024
Loading failed

Merge pull request #139 from Codeuctivity/third-party-notices

Add third-party notices for bundled veraPDF and OpenJDK JRE