473,569 Members | 2,782 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Jpgraph in FPDF

1 New Member
hello,
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.....(h ttp://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(inter nal server) for my project...Your help is very much appreciated...t hanks

Thank you for your time...
Oct 9 '07 #1
1 6553
Motoma
3,237 Recognized Expert Specialist
...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

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

Similar topics

4
15739
by: Phillip T. Murphy | last post by:
Not sure if this is the correct forum, but since FPDF is a PHP script, I thought I would give it a try... I am having a problem getting ANYTHING to print in a header using the FPDF functions. I can get text to go into the main body of the PDF file, but nothing into a header. I have messed with this for several hours, seached the web and...
2
11261
by: iulian.ilea | last post by:
Hi, I use JpGraph to generate some graphs and I have to include those graphs in a pdf file, generated usign fPDF (http://www.fpdf.org/). If I include a png file it's ok, the pdf file is generated, everithing goes ok. If I use this code: ___ $logo=file_get_contents('splineex1.php'); //Output it (requires PHP>=4.3.2 and FPDF>=1.52)...
3
20966
by: rahmawaktu | last post by:
Dear list, i am new to this forum and to JPGraph too. I just install jpgraph to create a graphic to my website. But i got error. Here is the complete code : First is MySQL Database : ( 2 tables) : 1. Table : Hesk_Categories CREATE TABLE `hesk_categories` ( `id` int(5) unsigned NOT NULL auto_increment,
6
5463
by: Steve | last post by:
been gleening the user docs for fpdf. there's one simple example for using the image function. i can't seem to get it to work. has anyone else had problems with this, and if so, what did you do to diagnose and fix the problem? tia, me
0
4211
by: luckyG | last post by:
I have php (5.2.4) compiled on redhat 4.0 as followed : ./configure \ --with-oci8=$ORACLE_HOME --with-apxs=/usr/local/apache/bin/apxs \ --with-config-file-path=/usr/local/apache/conf \ --enable-sigchild \ --with-gd \ --with-ttf=/usr/include/freetype2 \ --with-freetype-dir=/usr/include/freetype2 \ --with-gd-native-ttf \
2
2424
by: paeh | last post by:
what's wrong for this php code. when I run did not display anything in browser.. this is code: <?php include ("C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/jpgraph-2.3/src/jpgraph.php"); include ("C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/jpgraph-2.3/src/jpgraph_bar.php"); $db =...
2
3778
by: AARTHISUBBU | last post by:
i m quiet new to wamp... is it possible to run jpgraph codes in wamp... else i have to install jpgraph separately and to run?.. if i can run jpgraph codes in wamp,what i have to do? i m using wamp5..... thanku.....
1
2766
by: Sergei Riaguzov | last post by:
Hi, I'm having problems with fpdf v.1.1 used on the site - it doesn't open all PDFs with setSourceFile it says something about "missing xref headers". So I tried to install a newer fpdf version the v.1.53. And now the setSourceFile method of the previous fpdi class (now it is called FPDF) is gone. What should be used instead of it?
0
3468
by: eureka2050 | last post by:
Hi all, I am creating a radar chart containing 2 plots using jpgraph. My code is as follows:- include ("./jpgraph/src/jpgraph.php"); include ("./jpgraph/src/jpgraph_radar.php"); // Create the basic radar graph $graph = new RadarGraph(700,500,"auto");
0
7697
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8120
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
5512
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1212
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.