This is the pdf report plugin written for testng, this listner will generate the pdf report on testcases run, its very simple to configure no need to write any code.