As part of my work, I have to fill in a particular form that is provided to me. That form comes in either PDF or Word (.doc) sources. In the end, a PDF document needs to be generated. The PDF form is publicly available at
The Word document is in the same location, but downloads instead of displays in the browser.
I know nothing of the internals of either PDF or Word (.doc). My goal is to fill in the form programmatically from a database of answers (probably a flat CSV text file). The alternative is to fill the form in my hand each time, which is very time-consuming. I can program, so I'm wondering how I should go about learning how to do this in the most efficient manner possible. I use Emacs and so I'm wondering if there is some software that can look inside and manipulate a PDF or Word document? I could start studying up on PDF internals, etc., but I'm wondering if someone knows of a great resource that they would recommend on how to fill in a PDF or Word document using some open-source tool; in the alternative, what would be a great resource for learning how to do this.
If this question is too general, I guess a resource for where to ask this question other than here would be greatly appreciated.