add .pdf to filename if needed