本文整理汇总了PHP中COM::GenerateFlash方法的典型用法代码示例。如果您正苦于以下问题:PHP COM::GenerateFlash方法的具体用法?PHP COM::GenerateFlash怎么用?PHP COM::GenerateFlash使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类COM
的用法示例。
在下文中一共展示了COM::GenerateFlash方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: COM
<?php
set_time_limit(0);
$PPT_FILE = "/1.ppt";
$SWF_FOLDER = "";
$SWF_FILE = "quicktour.swf";
$fs = new COM("iSpring.PresentationConverter");
echo "Opening presentation\n";
$fs->OpenPresentation($PPT_FILE);
echo "Generating flash...\n";
$fs->GenerateFlash($SWF_FOLDER, $SWF_FILE, 0, "Standard");
echo "Done\n";
// Warning! When you don't need iSpring object it is necessary to set it to null
// otherwise error will occur when PHP script finishes.
$fs = null;
示例2: rm_recursive
} catch (Exception $e) {
$message = "<result><status>9.1 Error</status><message>" . $e->getMessage() . "</message></result>";
logit("ispring.php", $message);
return $e;
}
logit("ispring.php", "6. Saving Thumbnails");
try {
$isprComobj->Presentation->Slides->SaveThumbnails($thum_folder . "/" . $file_name . '_files', "thumbnail_", 2, 140, 140, 90);
} catch (Exception $e) {
$message = "<result><status>9.3 Error</status><message>" . $e->getMessage() . "</message></result>";
logit("ispring.php", $message);
return $e;
}
logit("ispring.php", "6. Generating flash");
try {
$isprComobj->GenerateFlash($swffile_folder, $swf_file, 0, "");
} catch (Exception $e) {
$message = "<result><status>9.2 Error</status><message>" . $e->getMessage() . "</message></result>";
logit("ispring.php", $message);
return $e;
}
$isprComobj = null;
logit("ispring.php", "7. Finished converting ");
$thumbname = str_replace(".", "_", $fileName);
logit("ispring.php", "8. After converting the Thumbname" . $thumbname);
//echo "Done\n";
// Warning! When you don't need iSpring object it is necessary to set it to null
// otherwise error will occur when PHP script finishes.
function rm_recursive($filepath)
{
if (is_dir($filepath) && !is_link($filepath)) {