Reputation: 21
Is there a way to reporting with javascript to generate pdf file?
Upvotes: 2
Views: 2289
Reputation: 1
Take a look at Stimulsoft Reports.JS that is a pure JavaScript tool. It supports export to PDF, Excel etc.
Upvotes: 0
Reputation: 382746
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.
Upvotes: 2
Reputation: 943615
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.
Upvotes: 0