Convert PDF to PDF/A-2A not valid

The issues you have found earlier (filed as PDFNET-58359,PDFNET-58361) have been fixed in Aspose.PDF for .NET 25.3.

@hasanirmak
Task PDFNET-58360 is closed.

Document.Validate() should be used after calling Document.Save(). This is not obvious and should be mentoned in the documentation and possibly taken into account during further changes to the library.

the code

var doc = new Document(dataDir + "11-SecurityBoost.pdf");
doc.Convert(dataDir + "report.xml", PdfFormat.PDF_A_2A, ConvertErrorAction.Delete);
bool isValidated = doc.Validate(new MemoryStream(), PdfFormat.PDF_A_2A);
Console.WriteLine("isValidated : " + isValidated);
doc.Save(dataDir + "11_out.pdf");
bool isValidatedAfterSave = doc.Validate(new MemoryStream(), PdfFormat.PDF_A_2A);
Console.WriteLine("isValidated after Save: " + isValidatedAfterSave);

outputs

isValidated : False
isValidated after Save: True