Link to home
Start Free TrialLog in
Avatar of kathysmith
kathysmith

asked on

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:

http://snapshotmedia.co.uk/blog/jspdf
http://www.collinssoftware.com/Pdf/Download.htm
http://www.adobe.com/devnet/acrobat/downloads.html

I'm not sure that "Adobe Acrobat SDK" can be used with VS2010, see http://forums.adobe.com/thread/721878?tstart=-3

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

Thank you in advance.
Avatar of Rouchie
Rouchie
Flag of United Kingdom of Great Britain and Northern Ireland image

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... http://www.4guysfromrolla.com/articles/030911-1.aspx
Avatar of kathysmith
kathysmith

ASKER

@Rouchie: Thanx for the answer.
I've ment JavaScript as defined here: http://no.wikipedia.org/wiki/JavaScript
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).

"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: http://snapshotmedia.co.uk/blog/jspdf). jsPDF seems very easy to use, but it doesn't work with IE. It should work in all major browsers.
ASKER CERTIFIED SOLUTION
Avatar of Rouchie
Rouchie
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@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.
500 points goes to @Rouchie, the only expert who tried to help me in taking a decision.