.net validation of pdfa file

可紊 提交于 2020-01-07 01:24:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!