I'm trying to find a solution for converting a PDF to a PDF/A-3A in .NET. When testing .NET PdfStandardsConverter with an input PDF containing JavaScript, I noted the result still contained JavaScript. To check on this further, I ran the result through a PDF-A validator and it is not a valid PDF-A. I get the following issues noted:
I'm using the latest version of Spire.PDF (v8.7.2.1040). My code is the following and I've attached the input and output PDFs of my test case in a zip file.
- Code: Select all
string inputFile = @"input.pdf";
string outputFolder = @"Output\";
PdfStandardsConverter converter = new PdfStandardsConverter(inputFile);
converter.ToPdfA3A(outputFolder + "ToPdfA3A.pdf");
Is there something more I need to be doing to generate valid PDF-A files?