Generates the pdf now.