View unanswered posts | View active topics It is currently Thu Mar 28, 2024 8:08 am



Reply to topic  [ 5 posts ] 
Exporting pChart to pdf 
Author Message
New pChart user
New pChart user

Joined: Wed Apr 25, 2012 5:55 pm
Posts: 1
Post Exporting pChart to pdf
Hello,

I am a newbie... Can some one guide me how to export pChart to pdf format?

Thanks.


Wed Apr 25, 2012 6:05 pm
Profile
pChart user
pChart user

Joined: Tue Jun 19, 2012 9:43 am
Posts: 4
Post 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


Tue Jun 19, 2012 9:49 am
Profile
Regular pChart user
Regular pChart user

Joined: Fri Apr 20, 2012 10:15 am
Posts: 9
Post 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 )


Mon Jul 02, 2012 9:30 am
Profile
New pChart user
New pChart user

Joined: Tue May 22, 2012 10:48 pm
Posts: 3
Post 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


Fri Jul 06, 2012 1:35 am
Profile
New pChart user
New pChart user

Joined: Tue Jul 30, 2013 11:24 am
Posts: 1
Post Re: Exporting pChart to pdf
I really like your way of expressing the opinion and sharing the information.

_________________
envisionwebhosting Envision Web Hosting
Certkiller 350-001 350-001
Certkiller 70-662 70-662
Certkiller 640-816 640-816
Certkiller 640-822 640-822


Tue Jul 30, 2013 11:38 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron