added file hash to the pdf file and deleted the old tmp file