Here in my Asp.net web application I have to generat pdf
, earlier I used to achive this task using itextsharp (server side / paid services) , now i found jspdf can be done on client side plus point it is open source.
Heres sample code which generate pdf
var doc = new jsPDF();
doc.text(20, 20, 'Hello world!');
doc.text(20, 30, 'This is client-side Javascript, pumping out a PDF.');
doc.addPage();
doc.text(20, 20, 'Do you like that?');
doc.save('Test.pdf');
For real work I need to get data by applying some logic (server side coding) , so i want to know whether i can access doc on serverside i.e ( c# ) or any another way to do ?