PDFIO.jl icon indicating copy to clipboard operation
PDFIO.jl copied to clipboard

Feature request: add support for reading attachments

Open etuini opened this issue 8 years ago • 2 comments

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.

etuini avatar Jul 20 '17 13:07 etuini

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.

sambitdash avatar Jul 20 '17 14:07 sambitdash

The 2 checkins above can address the need while the APIs are enhanced to support annots properly.

sambitdash avatar Jul 25 '17 12:07 sambitdash