Replace corrupt pdf file