Added support for PDF attachments (v2)