finished generation of the pdf