Feature request: add support for reading attachments
This may be low on your priority list, but being able to read PDF attachments would be great. I deal with a lot of PDFs that have xml or excel attachments with the source data used to generate the PDF. There just aren't many tools for dealing with attachments - it seems most people use command line tools.
PDF attachments are essentially annotations of file attachment type. Technically, the support exists in the current APIs. If you will read the PDF spec and access the CosObject relevant to the annotations you are looking for using Cos layer APIs you can technically get what you need with the current API. Let me see if I can provide you a code snippet for the same.
However, if you are looking for one method to access all file attachments, it may take some more time as I will have to implement for annotations in general in one go.
The 2 checkins above can address the need while the APIs are enhanced to support annots properly.