only add pdf if available
correct title of pdf attachment