#64 Remove .tmp from end of file name and add pdf extension