Create a pdf based on users input

Not sure if this is in the right forum, if not please move.

Basically what I am trying to do, for example, I have a 5 question questionnaire on my site. When the user clicks submit, I want them to go to a “contact us page” with a link that says, “Want to see your input, Click Here” and that will open up a PDF that shows what the user selected with some custom text above the submitted info.

What would be the best way to go about achieving this? Are there an examples I can look at to figure out how to do this?

Perhaps the simplest way to do it would be to use FPDF -

FPDF is about the best free choice. It does have a lot of limitations, but not the price of Adobe PDF Server. I know Moz, Raven Tools, and Prestashop all use fpdf. I would guess Magento and every other e-commerce application uses it as well.