[thelist] Creating MSWord doc and converting to PDF on the fl y via ASP

David.Cantrell at Gunter.AF.mil David.Cantrell at Gunter.AF.mil
Tue Feb 25 13:58:11 CST 2003


> I just don't want to re-invent the wheel. I'm still looking,
> but I keep finding scraps of the answer. The scenario:
> visitor accesses a secure page, fills in the form, a Word
> document is populated with the correct info *including a
> watermark* and a PDF is created for the visitor to download
> (or it is e-mailed to them; exact delivery details aren't
> critical.) The Word document is optional; if we can go
> straight from web form to watermarked PDF, that's great.

Actually, from what I've read you can use XSLT to create PDF. Not sure how
easy/complex this is, but if you know XSLT you are already halfway there. I
would just take the form elements, convert them to an XML document
in-memory, then pipe that doc through the XSLT to generate the PDF output
and then response.write it out to the user (with appropriate contentType of
course).

I'm sure there are COM components which will convert Word to PDF.

HTH,
-dave



More information about the thelist mailing list