Codeuctivity.PdfAValidator
3.0.208
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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.
-
net8.0
- System.IO.Compression.ZipFile (>= 4.3.0)
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 | 1,336 | 11/17/2023 |
3.0.189 | 1,080 | 9/30/2023 |
2.4.131 | 2,440 | 2/12/2023 |
2.3.104 | 6,999 | 10/29/2022 |
2.3.94 | 719 | 9/27/2022 |
2.2.84-beta | 269 | 9/19/2022 |
2.2.79-beta | 313 | 9/15/2022 |
2.2.32 | 1,137 | 5/31/2022 |
2.2.25 | 946 | 4/6/2022 |
2.2.14 | 881 | 2/2/2022 |
2.2.8 | 763 | 1/21/2022 |
2.0.16 | 1,251 | 2/15/2022 |
Migrated to net8.0, dropped older targets