Hi Aspose Team,
According to the PDF/A-2B specification it is possible for a PDF/A-2B file
to have PDF/A attachments. However if i try to add an attachment with the following code:
Document pdfDocument = new Document(“test.pdf”);
FileSpecification fSpec = new FileSpecification(“temp.pdf”,“temp file”);
pdfDocument.EmbeddedFiles.Add(fSpec);
if (pdfDocument.Validate(“log.xml”, PdfFormat.PDF_A_2B))
{
pdfDocument.Save(“finalResult.pdf”);
}
a System.NullReferenceException is thrown upon calling the pdfDocument.Validate.
How can i solve this issue?
Thanks in advance,
Dave