Fill a PDF on form submit

I have a way to do this with JS; however, I think it would be pretty cool if a PDF form could be filled out on form submission. Currently, we have a thermal printer connected to a form that, when submitted, generates a label.