JavaScript library to create PDF

Hi experts,

I have to write javascript code that reads some text from a web page, and writes it to a PDF file. This code is used in an ASP.NET custom web server control which has been developed with VS2010.

I've tried to find some kind of javascript library that could be used in VS2010 and used to create PDF. I found the following:

I'm not sure that "Adobe Acrobat SDK" can be used with VS2010, see

Is there anybody of you who knows, and eventually used, such a javascript library?

Thank you in advance.
Who is Participating?
RouchieConnect With a Mentor Commented:
No it won't work I'm afraid.  Javascript is a client-side language that operates in a 'safe' environment to stop malicious coders damaging users' computers.  By allowing JS to create/alter files, users would be put in direct risk of attack.
Therefore, the products you are looking at require a browser extension to function (that is, the hard work is done by the extension which will run with escalated privileges).  The Javascript is merely triggering the process.
Therefore, it will have to be run server side in order to work across all browsers, thus taking away the risk from users.
When you say Javascript do you mean JSscript?  Javascript is client side but you are needing to do something server side.  Anyhow, there's iTextSharp but I haven't used it...
kathysmithAuthor Commented:
@Rouchie: Thanx for the answer.
I've ment JavaScript as defined here:
I know about iTextSharp and I've read the article from Scott Mitchel some days ago. Very good article, and the code is right there. But iTextSharp can be used with .NET platform, while I need something that can be used from JavaScript code and can be referred from Visual Studio 2010 (where I have my js files).

Never miss a deadline with

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

kathysmithAuthor Commented:
"Adobe Acrobat SDK 9" can't be used as a plug in with Visual Studio 2010, only with VS2005 (which is also requested when installing Adobe Acrobat SDK 9).
So now I'm trying to find something like jsPDF (see: jsPDF seems very easy to use, but it doesn't work with IE. It should work in all major browsers.
kathysmithAuthor Commented:
@Rouchie: your explanation is good, and helps med to take a decision. I intend to adapt our ASP.NET custom web server control so that we can use iTextSharper to generate PDFs. Thanx.
kathysmithAuthor Commented:
500 points goes to @Rouchie, the only expert who tried to help me in taking a decision.
All Courses

From novice to tech pro — start learning today.