views:

69

answers:

2

Hi Guys,

How can export DIV area content from an HTML Page to PDF?.

Is it possible using without third-party tool, using JavaScript?.

Please suggest

A: 

Javascript cannot generate PDF. You will need to use serverside script to generate PDF file (for example - TCPDF).

Māris Kiseļovs
Sorry i didn't mentioned, using using ASP.net
sa2010
http://code.google.com/p/jspdf/
J-P
A: 

Hi, take a look at this post

http://stackoverflow.com/questions/742271/generating-pdf-files-with-javascript

Marko
Hi Marko, that seems good.Just one query, how can i pass my DIV content
sa2010
Well.. PDF's don't use HTML for the formatting, so you'd have to convert the HTML content to whatever syntax the PDF generator is using. Check out their docs I would say.
Marko