simplify pdf_attachment example