I realize similar questions have been asked here and other places but I am having trouble finding information relevant to what I am trying to do that was written within the last 5-10 years so any help is much appreciated.
What I would like to do it have an html form that when filled out and submitted generates a PDF which is 3.5" x 2" @ 300dpi with a 0.125" bleed on all sides. The form would be simple text entries: name, email, etc and it would place them onto this premade 3.5" x 2" PDF file (a template of sorts with a background image etc) and then save a new file with the text entries added. The PDF may also be emailed after creation.
What sort of library would be best to accomplish something like this in PHP 5.2? Would I need to first create an html/css layout of the document and then convert it to a PDF? I'm feeling a bit lost here.