Trying to use google charts with dompdf!

779 views
Skip to first unread message

Jack sowden

unread,
Sep 16, 2009, 9:55:52 AM9/16/09
to dompdf
I have been trying for ages now to get a dynamic graph of some kind
working with dompdf, but not haveing much look.

The easyeist way I can think of implmenting this is to use google
charts, but when I include the following code it stopps the pdf been
created for some reason.

<img src="http://chart.apis.google.com/chart?chs=250x100&chd=t:
60,40&cht=p3&chl=Hello|World">

The same image path works in other php pdf creators but I need to use
dompdf for its inline php capabilitys.

Any help would be greatfully recived.

Jack Sowden

brentmaggard

unread,
Sep 16, 2009, 11:36:11 AM9/16/09
to dompdf
I am trying to do the same exact same thing with no luck. Any kind of
help would be great!

Jack sowden

unread,
Sep 16, 2009, 10:45:17 AM9/16/09
to dompdf
I have solved the problem!

It was happerning due to me testing on my local server on my laptop.

When I tryed it on my server it worked fine.

Jack Sowden

David JM Emmett

unread,
Sep 16, 2009, 12:07:50 PM9/16/09
to dom...@googlegroups.com
So what was the problem? Lack of an internet connection?

--
Cheers,

David JM Emmett


**********************************************************************
The information contained in this message is confidential between the
sender and the intended recipient. The dissemination, distribution,
copying or disclosure of this message or its contents to or by any
other party is prohibited unless expressly authorised by the sender.
If you receive this message or any attachments in error, please
immediately notify the sender and delete the message and any
attachments from your system.

Can Studios Limited is Registered in England No 3873042

Registered Office 78 Cross Hill, Ecclesfield, Sheffield, S35 9TU
*********************************************************************

David JM Emmett

unread,
Sep 16, 2009, 12:16:09 PM9/16/09
to dom...@googlegroups.com
On Wed, 2009-09-16 at 08:36 -0700, brentmaggard wrote:
> I am trying to do the same exact same thing with no luck. Any kind of
> help would be great!
>
> >

There are many PHP graphic libraries available[0], take your pick -
personally I'd go for ImageMagick - it's a lot more flexible, it's OO
along with many other wins.

[0] - http://uk3.php.net/manual/en/refs.utilspec.image.php

BrianS

unread,
Sep 16, 2009, 1:42:43 PM9/16/09
to dompdf
On Sep 16, 9:55 am, Jack sowden <j...@jack-sowden.com> wrote:
> I have been trying for ages now to get a dynamic graph of some kind
> working with dompdf, but not haveing much look.
>
> The easyeist way I can think of implmenting this is to use google
> charts, but when I include the following code it stopps the pdf been
> created for some reason.
>
> <img src="http://chart.apis.google.com/chart?chs=250x100&chd=t:
> 60,40&cht=p3&chl=Hello|World">

This kind of URL doesn't work in the current stable release (0.5.1).
The upcoming release should be able to handle it, so you might want to
try 0.5.2 alpha 1.
Reply all
Reply to author
Forward
0 new messages