pChart 2.x forum http://wiki.pchart.net/forum/ |
|
Exporting pChart to pdf http://wiki.pchart.net/forum/viewtopic.php?f=3&t=5400 |
Page 1 of 1 |
Author: | zaidi3250 [ Wed Apr 25, 2012 6:05 pm ] |
Post subject: | Exporting pChart to pdf |
Hello, I am a newbie... Can some one guide me how to export pChart to pdf format? Thanks. |
Author: | pbrock [ Tue Jun 19, 2012 9:49 am ] |
Post subject: | Re: Exporting pChart to pdf |
Hi, Did you receive an answer to this question ? I would also like to have a way to export pChart plots in pdf format. I mean real vector based pdf file and not a pdf that includes a raster image. Is GD able to generate pdf ? Could GD graphic engine be changed to cairo (http://www.cairographics.org/) ? Regards Patrick |
Author: | cbaldinu [ Mon Jul 02, 2012 9:30 am ] |
Post subject: | Re: Exporting pChart to pdf |
Hi, the easiest solution to your problem is to use an external library like FPDF or TCPDF. I would suggest you to export your graph to a image file in the location you want, and use TCPDF or FPDF to print that image to a pdf file. Hope this can be useful to your needs. Cristian from Italy ( we lost with Spain for 4-0 LoooooL ) |
Author: | jdd [ Fri Jul 06, 2012 1:35 am ] |
Post subject: | Re: Exporting pChart to pdf |
cbaldinu is correct, the easiest way is to 1. Create your chart (Note: Make it MUCH bigger than if creating for web. ie 1000px wide) 2. Write your chart to a temp file ($myPicture->autoOutput("temp/image.png"); 3. Import your image into a TCPDF Document (http://www.tcpdf.org/examples/example_009.phps) 4. Delete your temp image |
Author: | michael78888 [ Tue Jul 30, 2013 11:38 am ] |
Post subject: | Re: Exporting pChart to pdf |
I really like your way of expressing the opinion and sharing the information. |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |