动态图和DOMPDF

I'm using DOMPDF to create PDF (with load_html(), not load_html_file()). I need some graphs to be in the PDF, and I've been trying with jpgraph.

I can't figure out how to make this work. The graph has to be dynamically generated with PHP, and it cannot be saved on the server. I can easily get the graph outputted, but it won't get into the PDF, since DOMPDF can't load PHP as image.

Any suggestions? It doesn't have to be jpgraph.

For some reason it works with full image urls now ("remote access"). So if anybody else has the same problem, enable remote in DOMPDF config, and you can use full URLs.