We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

PDF/A Attachments

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”);
if (pdfDocument.Validate(“log.xml”, PdfFormat.PDF_A_2B))

a System.NullReferenceException is thrown upon calling the pdfDocument.Validate.

How can i solve this issue?

Thanks in advance,


Hi Dave,

Sorry for the inconvenience faced. While using the latest version of Aspose.Pdf for .NET 8.1.0, I've managed to reproduce this issue on my side and logged the issue in our bug tracking system as PDFNEWNET-35453 for further investigation and resolution. I've also linked your request to this issue and you will be notified via this thread as soon as it is resolved.

Please feel free to contact us for any further assistance.

Best Regards,

The issues you have found earlier (filed as PDFNEWNET-35453) have been fixed in Aspose.Pdf for .NET 8.2.0.

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

Thank you for the quick response.