Test of generating pdf file.