tags:

views:

36

answers:

2

Is there a way to reporting with javascript to generate pdf file?

A: 

Assuming you mean "JavaScript running in a browser" then, "No, not in any practical way (since, while you can use data: URIs, they see limited browser support and limited file size)".

If you are talking server side JS, then you can generate whatever data you like, including PDF. There is at least one library that helps you do that.

David Dorward
+2  A: 

You can go for jsPDF.

jsPDF is an open-source library for generating PDF documents using nothing but Javascript. You can use it in a Firefox extension, in Server Side Javascript and with Data URIs in some browsers.

Sarfraz
I want to generate a PDF on the client side so I thought about JAVASCRIPT, my question is that there is a way of reporting on the client side?
YLA