using google charts with fpdf

1,318 views
Skip to first unread message

Oliver Eikel

unread,
Dec 18, 2009, 6:44:32 AM12/18/09
to google-c...@googlegroups.com
Hi all,

is there a way touse google charts within fpdf? The output is still am
image. But fpdf said "unsupportet image".
Solution or hint would be great!
The var $hauptgrafik contains the whole string of google bar chart.
$pdf->Image($hauptgrafik, 100, 20, 0, 0);

Best
Oliver


--
Korrektes Emailen:
_______________
http://www.olivereikel.de/privat/html/email_knigge.html

correct emailing
http://www.olivereikel.de/privat/english/html/email_knigge.html

Tom Maslen

unread,
Dec 23, 2009, 7:29:06 AM12/23/09
to google-c...@googlegroups.com
Hello Oliver,

I've got no idea if this is the issue, but maybe fpdf needs a file type
on the end (.png) in which case you could put a dummy file extension on
the end of the querystring like so...

http://chart.apis.google.com/chart?chs=600x300&chd=t:21,14,5,47,40,3,2&c
ht=p&.png

Regards,
Tom Maslen.
www.tmaslen.plus.com

Hi all,

Best
Oliver

correct emailing
http://www.olivereikel.de/privat/english/html/email_knigge.html

--

You received this message because you are subscribed to the Google
Groups "Google Chart API" group.
To post to this group, send email to google-c...@googlegroups.com.
To unsubscribe from this group, send email to
google-chart-a...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-chart-api?hl=en.

http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.

Oliver Eikel

unread,
Dec 23, 2009, 7:44:41 AM12/23/09
to google-c...@googlegroups.com
Hi Tom,
thanx for your answer. Could it be so simple? Till now, I found out,
that google is very sensitive regarding the syntax.
I will give a try.
But it looks, as if I have to change my provider (funpic) anyway.
External file access is disabled!
In the "normal" php file, everything is fine. But when generating the
pdf, I get the mentioned error.

IT =Incredible Trouble. ;)

Best
Oliver


2009/12/23 Tom Maslen <Tom.M...@bbc.co.uk>:

Reply all
Reply to author
Forward
0 new messages