Php fusioncharts和wkhtmltoimage

Php fusioncharts和wkhtmltoimage,php,fusioncharts,wkhtmltoimage,Php,Fusioncharts,Wkhtmltoimage,我正在尝试在服务器上导出fusionChart图像,而不在浏览器中渲染。。我想使用tcpdf中的图像 我在这里遵循了这个例子 php工作正常,但未生成图像 路径设置为C:\Program Files\wkhtmltopdf 非常感谢您提供的任何帮助。请尝试将图像和文件保存在项目文件夹中,并正确提供源名称。最终获得了它。。我们必须为$webpageURLWithChart设置完整的url < ?php $webpageURLWithChart = "http://local

我正在尝试在服务器上导出fusionChart图像,而不在浏览器中渲染。。我想使用tcpdf中的图像

我在这里遵循了这个例子

<?php
$webpageURLWithChart=“mychart.php”;
$outputImageFileName=“savedImage.png”;
$delay=500;
$shellout=shell_exec(“wkhtmltoimage--javascript delay$delay$webpagerwithchart$outputImageFileName”);
echo$shellout;
?>
php工作正常,但未生成图像

路径设置为C:\Program Files\wkhtmltopdf


非常感谢您提供的任何帮助。

请尝试将图像和文件保存在项目文件夹中,并正确提供源名称。

最终获得了它。。我们必须为$webpageURLWithChart设置完整的url

  < ?php
    $webpageURLWithChart = "http://localhost/test/mychart.php";
    $outputImageFileName = "savedImage.png";
    $delay = 500;
    $shellout = shell_exec("wkhtmltoimage --javascript-delay $delay $webpageURLWithChart $outputImageFileName" );
    echo $shellout;
    ?>
<?php
$webpageURLWithChart=”http://localhost/test/mychart.php";
$outputImageFileName=“savedImage.png”;
$delay=500;
$shellout=shell_exec(“wkhtmltoimage--javascript delay$delay$webpagerwithchart$outputImageFileName”);
echo$shellout;
?>

所有设置均在D:\wamp\www\test\echo图像路径中,并手动浏览该路径或使用浏览器检查图像路径是否正确。谢谢您最终获得该路径。我们必须为$webpageURLWithChart设置完整url。。我张贴了我的答案
  < ?php
    $webpageURLWithChart = "http://localhost/test/mychart.php";
    $outputImageFileName = "savedImage.png";
    $delay = 500;
    $shellout = shell_exec("wkhtmltoimage --javascript-delay $delay $webpageURLWithChart $outputImageFileName" );
    echo $shellout;
    ?>