Response.ContentType = "application/pdf"

M

Matt

The Response object will only tell the browser what application to use
to display the content. You will be required to use a third party
application to generate an actual PDF document. There are command line
tools out there you could use to accomplish this at
http://www.pdf-tools.com/. I have used them and they work great.
Text2PDf is included in their command line package. You can genearte a
..txt file on the fly using FSO and then run the "text2pdf" to convert
the .txt file (that was generated on-the-fly) to a PDF document.

One note, PDF files are an output file format. Even the full-blown
version of Adobe Acrobat doesn't give you the ability to create a PDF
(just edit an existing one). PDF files are normally created in another
application (Word, Page Maker, etc.) and Exported/Converted to PDF
using Acrobat Distiller.

If you know other languages you may be able to generate a PDF on the
fly through your own code but not in ASP (i.e. - Ghostscript).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,767
Messages
2,569,571
Members
45,045
Latest member
DRCM

Latest Threads

Top