I worked on this problem earlier.
The solutions could be:-
1. Pdf templates. If we have pdf templates and wants to do just like mail merge use FDF toolkit from Adobe.
2. If we want to convert data to different file formats we can use XSL:FO
3. We can Programmatically build pdf files using iText.
4. We can design templates using designing tools like Actuate and convert to pdf after merging data.
5. We can design a template using FO compatible tools like XSLfast and then use XSL:FO to convert to different file formats.
I want to know if anybody tried converting HTML templates to pdf using XSL:FO. I found a stylesheet on IBM site but that is expexting HTML to be as per XML format. But I would like to create HTML in
Word 2000 to convert to pdf. I tried WORDTOHTML (sourceforge project) but that is failing for complicated WORD files. Has anybody have solution. could you please let me know.