473,396 Members | 2,017 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Response.ContentType = "application/pdf"

Hello
Can any one suggest me how to create pdf on the fly...
I had already checked link http://www.aspfaq.com/show.asp?id=2207 but I
cannot use third party component as site is not hosted some where else...
Can any one give me good example how to create pdf file on the fly and write
just "hello"?
Also checked on expert - exchange but things couldnt work for me...
http://www.experts-exchange.com/Web/..._21239281.html

Thanx in advacne...
rgds
dave
Jul 22 '05 #1
2 17504
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).

Jul 22 '05 #2
Also see
http://www.aspfaq.com/2207

"dave" <no****@nojunk.com> wrote in message
news:u5**************@TK2MSFTNGP09.phx.gbl...
Hello
Can any one suggest me how to create pdf on the fly...
I had already checked link http://www.aspfaq.com/show.asp?id=2207 but I
cannot use third party component as site is not hosted some where else...
Can any one give me good example how to create pdf file on the fly and
write just "hello"?
Also checked on expert - exchange but things couldnt work for me...
http://www.experts-exchange.com/Web/..._21239281.html

Thanx in advacne...
rgds
dave

Jul 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jerry O | last post by:
Hi , I have my asp successfully creating excel file viewable through IE using the header: Response.ContentType = "application/vnd.ms-excel" If the user does not have excel installed they...
4
by: jrasmussen | last post by:
I have created an Excel spreadsheet for the web. When it opens in IE 6.0 I get the message that the format is not supported. This is because it is in tab delimited format. Ane when I save the file,...
5
by: TJS | last post by:
trying to display pdf file in browser fails on this line: Response.ContentType = "application/pdf" getting an error about no declaration found for "response" what declaration is needed ???
2
by: CVerma | last post by:
I'm using an html input control (System.web.UI.HTMLControls.HTMLInputFile) to upload files such as msword, excel, jpg, and pdf. I have the encType property set in the form:...
5
by: David Lozzi | last post by:
Hello, this is a repost of a previous post of mine from today. I need to export multiple documents (doc, xls, ppt, jpg) and crystal reports to a single PDF file. I know how to export a single...
0
by: Microsoft NewsGroups | last post by:
I am creating a TAB delimited file with .XLS extention using the Response.ContentType = "application/ms-excel" method. Normally I would place this on it's own form and delete all the HTML in the...
2
by: steve02a | last post by:
I'm using the Response.ContentType = "application/vnd.ms-excel" in my web application to export data into a spreadsheet. That works fine and all. My question is: When I export the data and go...
1
by: rguarnieri | last post by:
Hi!, I'm using Visual Studio 6.0 and I'm trying to open an asp page like a .pdf file, I used Response.ContentType="application/pdf" in my asp page but it doesn't work This is an example: <%@...
4
by: Bjorn Sagbakken | last post by:
With ASP.NET 2.0 I'm trying to display the pdf file directly in the client browser, but I only get a download dialogue box. Downloading the file works fine, but I want to view the PDF directly. ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.