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


PHP COM::OpenPresentation方法代码示例

本文整理汇总了PHP中COM::OpenPresentation方法的典型用法代码示例。如果您正苦于以下问题:PHP COM::OpenPresentation方法的具体用法?PHP COM::OpenPresentation怎么用?PHP COM::OpenPresentation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在COM的用法示例。


在下文中一共展示了COM::OpenPresentation方法的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: COM

logit("ispring.php", "3.1 This is the swf file folder path " . $swf_file);
try {
    $isprComobj = new COM("iSpring.PresentationConverter");
} catch (Exception $e) {
    $message = "<result><status>9.1 Error</status><message>" . $e->getMessage() . "</message></result>";
    logit("ispring.php", $message);
    return $e;
}
logit("ispring.php", "4. com object created");
//echo "Opening presentation\n";
$isprComobj->Settings->Playback->Player->CorePlugins->AddBuiltInPlugin(1);
$isprComobj->Settings->Navigation->KeyboardEnabled = false;
$isprComobj->Settings->Navigation->AdvanceOnMouseClick = false;
logit("ispring.php", "5. opening presentation");
try {
    $isprComobj->OpenPresentation(realpath($file_path));
} 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 {
开发者ID:aview,项目名称:aview-content-php,代码行数:31,代码来源:ispring.php


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