嗨我使用此代码将pdf转换为swf我在本地服务器的站点中有pdf2swf.exe文件,我想将名为1.pdf的pdf移动到要使用命令行转换的pdf2swf.exe但是它不起作用我不知道为什么代码enter code here
<?php
$software_path ="C:\\wamp\www\wellelafa\SWFTools\pdf2swf" ;
$pdf_path ="C:\\wamp\www\wellelafa\SWFTools\1.pdf" ;
$argument = "-o";
$swf_output ="C:\\wamp\www\wellelafa\1.swf" ;
$cmd ="$software_path $pdf_path $argument $swf_output";
$WshShell = new COM("WScript.Shell");
$oExec = $WshShell->Run("cmd /C $cmd ", 0, true);
?>
答案 0 :(得分:0)
试试这个
<?php
$software_path ="C:\\wamp\www\wellelafa\SWFTools\pdf2swf.exe" ;
$pdf_path ="C:\\wamp\www\wellelafa\SWFTools\1.pdf" ;
$swf_output ="C:\\wamp\www\wellelafa\1.swf" ;
$cmd =$software_path . " -b " . $pdf_path . " -o " . $swf_output";
exec($cmd);
?>