Codeuctivity.PdfAValidator 3.0.208

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
dotnet add package Codeuctivity.PdfAValidator --version 3.0.208
NuGet\Install-Package Codeuctivity.PdfAValidator -Version 3.0.208
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="3.0.208" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Codeuctivity.PdfAValidator --version 3.0.208
#r "nuget: Codeuctivity.PdfAValidator, 3.0.208"
#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.
// Install Codeuctivity.PdfAValidator as a Cake Addin
#addin nuget:?package=Codeuctivity.PdfAValidator&version=3.0.208

// Install Codeuctivity.PdfAValidator as a Cake Tool
#tool nuget:?package=Codeuctivity.PdfAValidator&version=3.0.208

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

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.208 809 11/17/2023
3.0.189 604 9/30/2023
2.4.131 1,444 2/12/2023
2.3.104 5,187 10/29/2022
2.3.94 648 9/27/2022
2.2.84-beta 205 9/19/2022
2.2.79-beta 248 9/15/2022
2.2.32 1,041 5/31/2022
2.2.25 865 4/6/2022
2.2.14 809 2/2/2022
2.2.8 692 1/21/2022
2.0.16 1,120 2/15/2022

Migrated to net8.0, dropped older targets