问题
I try to write a validation method in a VB project to check if a PDF file is PDF/A. I was playing with itextsharp.pdfa but i don't find a way to validate this.
From here I understood that using itextsharp was not possible. Does itextsharp 5.5.5 include some functionalities like this?
Are there other dll I can use in a vb.net project for this validation?
回答1:
There currently is no such thing, but the European Union has mandated a project to build a "PDF/A Conformance Checker" as an open source project. You can follow the progress here: http://www.preforma-project.eu/pdfa-conformance-checker.html
Checking for PDF/A isn't trivial, so it will probably take a while before this project is finished. There has been a lot of discussion about this at the ISO meetings for PDF as well as by the PDF Association.
回答2:
VeraPdf has been released some time ago and can be integrated using PdfAValidator
using (var pdfAValidator = new PdfAValidator.PdfAValidator())
{
var result = pdfAValidator.Validate(@"./TestPdfFiles/FromLibreOffice.pdf");
Assert.True(result);
}
来源:https://stackoverflow.com/questions/29822154/net-validation-of-pdfa-file