we extract xml-attachments from pdf-files. These attachments are coded as a /Kids-Array (and not as a Names-Array) in the pdf-fle.
With this code:
Document pdfDoc = new
EmbeddedFileCollection efc = pdfDoc.EmbeddedFiles;
FileSpecification fs = efc;
byte fileContent = new byte[fs.Contents.Length];
fs.Contents.Read(fileContent, 0, fileContent.Length);
FileStream fstream = new FileStream(fs.Name, FileMode.Create);
fstream.Write(fileContent, 0, fileContent.Length);
this works fine!
Many other pdf-tools cannot handle the attachment in the /kids-array.
Is this a feature of Aspose.pdf, that we can rely on in the future, or does it work just by chance, and might be deactivated somtime in the future?
(It did not work in 8.4.0, but works since 9.2.1)