add .pdf extension to pdf filename