可以动态地将 PDF 转换为 SWF 吗?我一直在努力,但事实证明这很困难。
这是我的代码:
<?php
include('include\settings.php');
$title = "k";
$makeswf= mysql_query("SELECT * FROM books WHERE title = '$title'");
$rows = mysql_num_rows($makeswf);
if ($rows !=0)
{
while($rows = mysql_fetch_assoc($makeswf))
{
//where blocation is the pdf file need to be converted.
$file = $rows['blocation'];
echo exec('D:\wamp\www\dspzlibrary\converter\pdf2swf.exe books\$file.pdf -o books\$file.swf -f -T 9 -t -s storeallcharacters');
}
}
else
echo"empty";
?>
这是我收到的错误:
错误无法打开书籍\$file.pdf
任何帮助将不胜感激。