cleaning the pdf process