regenerate the pdf