I have an issue with processing document’s file attachments. I have PDF/A 2-b document with PDF/A 1-b and 2-b attachments. Some of them attached to a place on a page, some of them attached to a document itself.
After converting document to PDF/A 2-b format using Aspose.PDF, files, attached to a document itself, are removed from document.
Code snippet to replicate issue:
new Aspose.Pdf.License().SetLicense(<license file>); var document = new Aspose.Pdf.Document("PDF-A 2-b with document attachments.pdf"); document.Convert(new MemoryStream(), PdfFormat.PDF_A_2B, ConvertErrorAction.Delete); document.Save("PDF-A 2-b with document attachments converted.pdf");
Issue replicated on Aspose.PDF 18.104.22.168. Sample PDF document: PDF-A 2-b with document attachments.pdf (39.0 KB)