I'm trying to come up with a way of managing documents.
Presently, we're designing our document templates in HTML, then we let our clients fill in a few blanks using CKEditor, and then we use DOMPDF to convert the HTML into a PDF so that they can print the document off.
This works okay, but there are many places it can go wrong. CKEditor messes with the HTML a little bit, and DOMPDF doesn't always convert it perfectly. In particular, we can't do headers and footers properly.
Since our end goal is to produce a PDF, is there a better method of doing all this? For example, we could design the document in either PostScript or LaTeX and then somehow render the PDF directly on our website (no external program!) using JavaScript, with some kind of placeholder textboxes in it so our clients can fill in the needed parts, and then save and export that?
The "fill in" part has to stay on our site because we need to track what they enter for auditing and versioning.