Reputation: 1501
I have a web application with some pages where there are some texts, and some charts generated with javascript library. I want to show a "Download as pdf" link on each page, which will export the current page in pdf version.
Is there any way to do this.?
Upvotes: 0
Views: 709
Reputation: 8867
http://www.cloudformatter.com/CSS2Pdf has 12 different chart/map javascript libraries in the demos panel showing the pure SVG to PDF as vector information along with text, tables.
Upvotes: 1
Reputation: 81
You can export image, then insert it into pdf file using itext or another library. I think the below link help you: http://www.highcharts.com/component/content/article/2-articles/news/56-improved-image-export-with-phantomjs
Upvotes: 0
Reputation: 862
Just run from command line
phantomjs rasterize.js 'http://en.wikipedia.org/w/index.php?title=Jakarta&printable=yes' jakarta.pdf
Upvotes: 0