Rajan
Rajan

Reputation: 1501

How to convert current xhtml page with javascript charts to pdf

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

Answers (3)

Kevin Brown
Kevin Brown

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

Yengibar Manasyan
Yengibar Manasyan

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

cevek
cevek

Reputation: 862

http://phantomjs.org/

Just run from command line

phantomjs rasterize.js 'http://en.wikipedia.org/w/index.php?title=Jakarta&printable=yes' jakarta.pdf

Upvotes: 0

Related Questions