本文整理汇总了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;
示例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 {