By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,946 Members | 1,600 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,946 IT Pros & Developers. It's quick & easy.

Jpgraph in FPDF

P: 1
I am using Jpgraphs to generate graphs..i have to display the data for plotting the graphs as well.These results has to be in PDF.hence i used FPDF to generate pdf..

Now i can display the data in table format,which are used for plotting the graphs...But i dont know how to insert the graph in FPDF..

I have seen the tutorial where they use the
$logo=get contence.....(http://localhost/graph.php)

I had tried this but it is not working...

Errors comes out saying that graph.php is not PNG.....

So the problem that i am having is
1.)How to insert the graph.php in FPDF
2.)How to integrate the graphs and the table....

Is anyone have used insert the Jpgraphs in FPDF?

By the way i am using PHP,xampp(internal server) for my project...Your help is very much appreciated...thanks

Thank you for your time...
Oct 9 '07 #1
Share this Question
Share on Google+
1 Reply

Expert 2.5K+
P: 3,235
...Errors comes out saying that graph.php is not PNG.....
Have you sent the proper header in the PNG file? Can you view the PNG directly?
Make sure there are no extra lines outside of your <?php ?> brackets, these could be getting appended (similar to HTML outside of brackets) to your PNG file after it is being rendered.
Oct 9 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.