Attachment support

Based on #28 this PR introduces attachment support.
Can we make this creating a file from an existing PDF, so you can still fire up the application and test it?