You are here: JpGraph and PDF « PHP Programming Language « IT news, forums, messages
JpGraph and PDF

Posted by iulian.ilea on 09/20/06 08:47

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)
$pdf->Image('var://logo', 0, 0, 150, 0, 'PNG');
___

....to include genereted graph i get this error:
___
CGI Error
The specified CGI application misbehaved by not returning a complete
set of HTTP headers. The headers it did return are:
___

So, I need to save generated graph into a file and then to include in
pdf using
___
$logo=file_get_contents('splineex1.png');
//Output it (requires PHP>=4.3.2 and FPDF>=1.52)
$pdf->Image('var://logo', 0, 0, 150, 0, 'PNG');
___

The problem is that I can't find how to save it.

http://www.fpdf.org/
http://www.aditus.nu/jpgraph/

I use PHP 4.....

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация