当前位置: 首页>>代码示例>>PHP>>正文


PHP COM::GenerateFlash方法代码示例

本文整理汇总了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;
开发者ID:aview,项目名称:aview-content-php,代码行数:14,代码来源:index.php

示例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)) {
开发者ID:aview,项目名称:aview-content-php,代码行数:31,代码来源:ispring.php


注:本文中的COM::GenerateFlash方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。