How do I change format of pdf attachment?