Added attachment metadata, but no PDF output yet.
Implementation of PDF attachments.