PDF generation at the end of a survey



I have few different type of questions in a survey on few pages. At the end of the survey I need to show a table with all the questions and answers in a row.
Also, I need to download that page in PDF format with a click on button.