assuming that having a PDF as output is non-negotiable
It is not essential that it uses a PDF - I hadn't considered any alternatives.
This a little side project. My partner has started looking after dogs here at home. UK legislation requires that Boomer, our office hound, and the visiting dogs have a "meet-and-greet" session to ensure they all get on. If they do, the owner has to sign to say they are happy for their dog(s) to be walked, fed, etc with Boomer. As the meet and greet is outside in a park, I've created a web system to guide the necessary questions then, with the help of Javascript canvas, the owner can sign the webpage and the signature gets uploaded along with pictures of their dogs. This part is to put that signature and dog pictures into a PDF that then gets emailed to then. So no, it doesn't have to be PDF but I cannot think of a format that would work quite as well.
There's a fairly steep learning curve with LaTeX but it is well worth it and will be a skill that you (Bod) can drawn on for a lifetime - at least it has been with me
Yes - LaTeX is on my radar. It has come up a couple of times as something that I need to investigate. The steep learning curve puts me off a bit, especially as I rarely work with PDFs programmatically. However, I have just started a new business partnership based around publishing so perhaps in future I will be doing more with dynamically generated PDFs.
On your recommendation hippo, I will push LaTeX up the list a bit...