PDA

View Full Version : How To Export ExtJs Graphs on a PDF file



Naveen1408
22 Aug 2012, 10:18 PM
Hi,

I have created some charts/graphs using Extjs and I want to export those graphs in a PDF file. Can please guide me how these graphs can be exported to a PDF file.

Thanks,
Naveen

fschaeffer
23 Aug 2012, 4:43 AM
You could use the chart.save()-method to obtain a rendered PNG server-side which then could be embedded in an PDF using pdflib or TCPDF.

Or you could use the SVG-data for that chart, send it to your server and then include that SVG directly in TCPDF so that your chart will be embedded as vector (resizing will be possible without quality loss).

I guess client-side-saving will be only possible by using a PDFwriter-printer-driver ....