Generate the full pdf file and test pass