Last active
December 8, 2020 18:02
-
-
Save aspose-cloud/67ba57c9ba0134d2e8c8ed2132d6515f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$slideIndex = 1; | |
$shapeIndex = 1; | |
$lstDataPoints = array(new Model\OneValueChartDataPoint(), new Model\OneValueChartDataPoint()); | |
$dto = new Model\OneValueSeries(); | |
$dto->DataPoints = $lstDataPoints; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\PostChartSeriesRequest($fileName, $slideIndex, $shapeIndex, $dto, null, null, CommonUtils::$MyStorage); | |
$result = $slidesApi->postChartSeries($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$index = 2; | |
$notesSlide = new Model\NotesSlide(); | |
$notesSlide->setText("New slide"); | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\PostAddNotesSlideRequest($fileName, $index, $notesSlide); | |
$result = $slidesApi->postAddNotesSlide($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$file = realpath(__DIR__ . '/../..') . '\resources\\' . $fileName; | |
$request = new Requests\PostSlidesConvertRequest($file, Model\ExportFormat::PDF, null, "customfonts/calibriupdated.f"); | |
$result = $slidesApi->postSlidesConvert($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$index = 2; | |
$notesSlide = new Model\NotesSlide(); | |
$notesSlide->setText("New notes slide."); | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\PostAddNotesSlideRequest($fileName, $index, $notesSlide); | |
$result = $slidesApi->postAddNotesSlide($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$index = 2; | |
$shapeBase = new Model\ShapeBase(); | |
$shapeBase->setShapeType(Model\ShapeBase::SHAPE_TYPE_CALLOUT2); | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\PostAddNewShapeRequest($fileName, $index, $shapeBase); | |
$result = $slidesApi->postAddNewShape($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$property = new Model\DocumentProperty(); | |
$property->setName("MyCustom"); | |
$property->setValue("My custom property value"); | |
$property->setBuiltIn(false); | |
$properties = new Model\DocumentProperties(); | |
$properties->properties = array($property); | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\PostSlidesSetDocumentPropertiesRequest($fileName, $properties); | |
$result = $slidesApi->postSlidesSetDocumentProperties($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$index = 2; | |
$smartArtShape = new Model\SmartArtShape(); | |
$smartArtShape->setShapeType(Model\ShapeBase::SHAPE_TYPE_CALLOUT2); | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\PostNotesSlideAddNewShapeRequest($fileName, $index, $smartArtShape); | |
$result = $slidesApi->postNotesSlideAddNewShape($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aspose.Slides-Cloud-SDK-PHP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Required dependencies and include autoload.php | |
require_once(dirname(__DIR__) . '/vendor/autoload.php'); | |
// Common class to hold the constants and static functions | |
class CommonUtils { | |
// TODO: Get your AppSID and AppKey at https://dashboard.aspose.cloud (free registration is required) | |
static $AppSid = 'XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX'; | |
static $AppKey = 'XXXXXXXXXXXXXXXXXXXX'; | |
static $ApiBaseUrl = 'https://api.aspose.cloud'; | |
static $MyStorage = 'First Storage'; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$file = fopen(realpath(__DIR__ . '/../..') . '/resources/test-unprotected.ppt', 'r'); | |
$request = new Requests\PostSlidesConvertRequest($file, Model\ExportFormat::PDF); | |
$result = $slidesApi->postSlidesConvert($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$file = fopen(realpath(__DIR__ . '/../..') . '/resources/test-unprotected.ppt', 'r'); | |
$request = new Requests\PostSlidesConvertRequest($file, Model\ExportFormat::PDF, null, "customfonts/calibriupdated.f"); | |
$result = $slidesApi->postSlidesConvert($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
// Create request and execute api method | |
$request = new Requests\CopyFileRequest("NewFolder\\test.ppt", "NewFolder\\test1.ppt", CommonUtils::$MyStorage, CommonUtils::$MyStorage); | |
$slidesApi->copyFile($request); | |
echo("Copied"); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
// Create request and execute api method | |
$request = new Requests\CopyFolderRequest("NewFolder", "NewFolder1", CommonUtils::$MyStorage, CommonUtils::$MyStorage); | |
$slidesApi->copyFolder($request); | |
echo("Expected response type is Void: 'NewFolder' folder copied as 'NewFolder1'."); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$cloneFrom = "test-unprotected2.ppt"; | |
$cloneFromIndex = 1; | |
// Upload original documents to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($cloneFrom, realpath(__DIR__ . '/../..') . '\resources\\' . $cloneFrom, CommonUtils::$MyStorage)); | |
$request = new Requests\PostCopyMasterSlideFromSourcePresentationRequest($fileName, $cloneFrom, $cloneFromIndex); | |
$result = $slidesApi->postCopyMasterSlideFromSourcePresentation($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$index = 1; | |
$possition = 2; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\PostSlidesCopyRequest($fileName, $index, $possition); | |
$result = $slidesApi->postSlidesCopy($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
// Create request and execute api method | |
$request = new Requests\CreateFolderRequest("NewFolder", CommonUtils::$MyStorage); | |
$slidesApi->createFolder($request); | |
echo("Expected response type is Void: 'NewFolder' folder created."); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "new_presentation_from_html.pptx"; | |
$htmlData = "<html> <head></head> <body> <p>Html content</p> </body> </html>"; | |
$request = new Requests\PostSlidesDocumentFromHtmlRequest($fileName, $htmlData); | |
$result = $slidesApi->postSlidesDocumentFromHtml($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "new_presentation_from_template.pptx"; | |
$templateFile = "TemplateCV.pptx"; | |
$templateData = file_get_contents(realpath(__DIR__ . '/../..') . '/resources/TemplatingCVDataWithBase64.xml'); | |
// Upload document to Cloud Storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\PostSlidesDocumentFromHtmlRequest($templateFile, $templateData); | |
$result = $slidesApi->postSlidesDocumentFromHtml($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$slideIndex = 1; | |
$shapeIndex = 1; | |
$seriesIndex = 2; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\DeleteChartSeriesRequest($fileName, $slideIndex, $shapeIndex, $seriesIndex, $dto, null, null, CommonUtils::$MyStorage); | |
$result = $slidesApi->deleteChartSeries($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
// Create request and execute api method | |
$request = new Requests\DeleteFileRequest("NewFolder\\test1.ppt", CommonUtils::$MyStorage); | |
$slidesApi->deleteFile($request); | |
echo("Deleted"); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
// Create request and execute api method | |
$request = new Requests\DeleteFolderRequest("NewFolder\\NewFolder1", CommonUtils::$MyStorage); | |
$slidesApi->deleteFolder($request); | |
echo("Deleted"); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$index = 2; | |
$shapes = array(1,3); | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\DeleteSlideShapesRequest($fileName, $index, null, $shapes); | |
$result = $slidesApi->deleteSlideShapes($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\DeleteSlidesCleanSlidesListRequest($fileName, array(1,2)); | |
$result = $slidesApi->deleteSlidesCleanSlidesList($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\DeleteSlidesDocumentPropertiesRequest($fileName); | |
$result = $slidesApi->deleteSlidesDocumentProperties($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$index = 2; | |
$shapeIndex = 1; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\DeleteSlideShapeRequest($fileName, $index, $shapeIndex); | |
$result = $slidesApi->deleteSlideShape($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
// Create request and execute api method | |
$request = new Requests\DownloadFileRequest("NewFolder\\test.ppt", CommonUtils::$MyStorage); | |
$result = $slidesApi->downloadFile($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$index = 1; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\PostSlideSaveAsRequest($fileName, $index, Model\SlideExportFormat::PDF); | |
$result = $slidesApi->postSlideSaveAs($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$index = 2; | |
$shapeIndex = 1; | |
$paragraphIndex = 1; | |
$paragrapgh = new Model\Paragraph(); | |
$paragrapgh->setAlignment(Model\Paragraph::ALIGNMENT_CENTER); | |
$paragrapgh->setBulletType(Model\Paragraph::BULLET_TYPE_NUMBERED); | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\PutUpdateNotesSlideShapeParagraphRequest($fileName, $index, $shapeIndex, $paragraphIndex, "", $paragrapgh); | |
$result = $slidesApi->putUpdateNotesSlideShapeParagraph($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
// Create request and execute api method | |
$request = new Requests\GetFilesListRequest("NewFolder\NewFolder1", CommonUtils::$MyStorage); | |
$result = $slidesApi->getFilesList($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$index = 3; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\GetMasterSlideRequest($fileName, $index); | |
$result = $slidesApi->getMasterSlide($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\GetMasterSlidesListRequest($fileName); | |
$result = $slidesApi->getMasterSlidesList($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$index = 2; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\GetNotesSlideRequest($fileName, $index); | |
$result = $slidesApi->getNotesSlide($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$index = 2; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\GetNotesSlideWithFormatRequest($fileName, $index, Model\NotesSlideExportFormat::JPEG); | |
$result = $slidesApi->getNotesSlideWithFormat($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$index = 2; | |
$shapeIndex = 1; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\GetSlideAnimationRequest($fileName, $index, $shapeIndex); | |
$result = $slidesApi->getSlideAnimation($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$index = 3; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\GetSlidesSlideCommentsRequest($fileName, $index); | |
$result = $slidesApi->getSlidesSlideComments($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$index = 1; | |
$placeholderIndex = 1; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\GetSlidesPlaceholderRequest($fileName, $index, $placeholderIndex); | |
$result = $slidesApi->getSlidesPlaceholder($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\GetSlidesSlidesListRequest($fileName); | |
$result = $slidesApi->getSlidesSlidesList($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\GetSlidesDocumentPropertiesRequest($fileName); | |
$result = $slidesApi->getSlidesDocumentProperties($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\GetSlidesImagesRequest($fileName); | |
$result = $slidesApi->getSlidesImages($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$index = 3; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\GetSlidesImageWithDefaultFormatRequest($fileName, $index); | |
$result = $slidesApi->getSlidesImageWithDefaultFormat($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$index = 3; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\GetSlidesImageWithFormatRequest($fileName, $index, Model\ImageExportFormat::PNG); | |
$result = $slidesApi->getSlidesImageWithFormat($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\GetSlidesPresentationTextItemsRequest($fileName, false); | |
$result = $slidesApi->getSlidesPresentationTextItems($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$index = 3; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\GetSlidesSlideImagesRequest($fileName, $index); | |
$result = $slidesApi->getSlidesSlideImages($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$index = 2; | |
$shapeIndex = 1; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\GetSlideShapeRequest($fileName, $index, $shapeIndex); | |
$result = $slidesApi->getSlideShape($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\GetSlidesSlidesListRequest($fileName); | |
$result = $slidesApi->getSlidesSlidesList($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\GetSlidesSlidesListRequest($fileName, null, null, CommonUtils::$MyStorage); | |
$result = $slidesApi->getSlidesSlidesList($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$index = 3; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\GetSlidesThemeColorSchemeRequest($fileName, $index); | |
$result = $slidesApi->getSlidesThemeColorScheme($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$index = 3; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\GetSlidesThemeFontSchemeRequest($fileName, $index); | |
$result = $slidesApi->getSlidesThemeFontScheme($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$index = 3; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\GetSlidesThemeFormatSchemeRequest($fileName, $index); | |
$result = $slidesApi->getSlidesThemeFormatScheme($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$index = 3; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\GetSlidesThemeRequest($fileName, $index); | |
$result = $slidesApi->getSlidesTheme($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Aspose.Slides Cloud SDK - Php Examples</title> | |
</head> | |
<body> | |
<h1> | |
Aspose.Slides Cloud SDK - Php Examples</h1> | |
<p> | |
Please first provide the <b>AppSid</b> & <b>AppKey</b> in <b>'CommonUtils.php'</b><br/>Click on the link to execute the examples for respective outputs.</p> | |
<ul> | |
<li> | |
<h3> | |
Working with Folder</h3> | |
<ol> | |
<li><a href="src/WorkingWithFolders/CreateFolder.php" target="_blank">Create New Folder</a></li> | |
<li><a href="src/WorkingWithFolders/CopyFolder.php" target="_blank">Copy Folder</a></li> | |
<li><a href="src/WorkingWithFolders/GetFilesList.php" target="_blank">Get List Files in a Folder</a></li> | |
<li><a href="src/WorkingWithFolders/MoveFolder.php" target="_blank">Move Folder</a></li> | |
<li><a href="src/WorkingWithFolders/DeleteFolder.php" target="_blank">Delete Folder</a></li> | |
</ol> | |
</li> | |
<li> | |
<h3> | |
Working with Files</h3> | |
<ol> | |
<li><a href="src/WorkingWithFiles/UploadFile.php" target="_blank">Upload File</a></li> | |
<li><a href="src/WorkingWithFiles/CopyFile.php" target="_blank">Copy File</a></li> | |
<li><a href="src/WorkingWithFiles/MoveFile.php" target="_blank">Move File</a></li> | |
<li><a href="src/WorkingWithFiles/DownloadFile.php" target="_blank">Download File</a></li> | |
<li><a href="src/WorkingWithFiles/DeleteFile.php" target="_blank">Delete File</a></li> | |
</ol> | |
</li> | |
<li> | |
<h3> | |
Working with Documents</h3> | |
<ol> | |
<li><a href="src/WorkingWithDocument/CreateNewPresentationFromTemplate.php" target="_blank">Create new PowerPoint Presentations from Template</a></li> | |
<li><a href="src/WorkingWithDocument/CreateNewPresentationFromHTML.php" target="_blank">Create new PowerPoint Presentations from HTML</a></li> | |
<li><a href="src/WorkingWithDocument/SplitPresentations.php" target="_blank">Split PowerPoint Presentations</a></li> | |
<li><a href="src/WorkingWithDocument/MergePresentations.php" target="_blank">Merge PowerPoint Presentations</a></li> | |
</ol> | |
</li> | |
<li> | |
<h3> | |
Working with Formats</h3> | |
<ol> | |
<li><a href="src/WorkingWithFormats/ConvertToOtherFormat.php" target="_blank">Convert PowerPoint Documents to other File Formats</a></li> | |
<li><a href="src/WorkingWithFormats/ConvertToOtherFormatWithStream.php" target="_blank">Convert PowerPoint Documents to other File Formats from Stream</a></li> | |
</ol> | |
</li> | |
<li> | |
<h3> | |
Working with Slides</h3> | |
<ol> | |
<li><a href="src/WorkingWithSlides/DownloadSlide.php" target="_blank">Download a Slide from a PowerPoint Presentation</a></li> | |
<li><a href="src/WorkingWithSlides/DeleteSlides.php" target="_blank">Delete Slides from a PowerPoint Presentation</a></li> | |
<li><a href="src/WorkingWithSlides/GetSlidePlaceholderInformation.php" target="_blank">Get Placeholder Information from a PowerPoint Slide</a></li> | |
<li><a href="src/WorkingWithSlides/AddNewSlide.php" target="_blank">Add a New Slide in a PowerPoint Presentation</a></li> | |
<li><a href="src/WorkingWithSlides/CopySlides.php" target="_blank">Copy Slides in a PowerPoint Presentation</a></li> | |
<li><a href="src/WorkingWithSlides/MoveSlides.php" target="_blank">Move a slide to a new position in a PowerPoint Presentation</a></li> | |
<li><a href="src/WorkingWithSlides/WorkingWithSlideBackground.php" target="_blank">Working with a slides background in a PowerPoint Presentation</a></li> | |
<li><a href="src/WorkingWithSlides/GetSlideComments.php" target="_blank">Get comments of a slide in a PowerPoint Presentation</a></li> | |
<li><a href="src/WorkingWithSlides/GetSlidesCount.php" target="_blank">Get PowerPoint Slide Count</a></li> | |
</ol> | |
</li> | |
<li> | |
<h3> | |
Working with Themes</h3> | |
<ol> | |
<li><a href="src/WorkingwithThemes/GetSlidesThemeFonts.php" target="_blank">Get the FontScheme of a slide in a PowerPoint Presentation</a></li> | |
<li><a href="src/WorkingwithThemes/GetSlidesThemeFormats.php" target="_blank">Get the FormatScheme of a slide in a PowerPoint Presentation</a></li> | |
<li><a href="src/WorkingwithThemes/GetSlidesThemes.php" target="_blank">Get the Theme of a slide in a PowerPoint Presentation</a></li> | |
<li><a href="src/WorkingwithThemes/GetSlidesThemeColors.php" target="_blank">Read ColorScheme information from a PowerPoint Presentation</a></li> | |
</ol> | |
</li> | |
<li> | |
<h3> | |
Working with Master Slides</h3> | |
<ol> | |
<li><a href="src/WorkingWithMasterSlides/GetMasterSlides.php" target="_blank">Reading MasterSlide Information from a PowerPoint Presentation</a></li> | |
<li><a href="src/WorkingWithMasterSlides/GetMasterSlideByIndex.php" target="_blank">Reading MasterSlide Information by index from a PowerPoint Presentation</a></li> | |
<li><a href="src/WorkingWithMasterSlides/CopyMasterSlideFromSourcePresentation.php" target="_blank">Clone MasterSlide Information from a PowerPoint Presentation</a></li> | |
</ol> | |
</li> | |
<li> | |
<h3> | |
Working with Animations</h3> | |
<ol> | |
<li><a href="src/WorkingWithAnimations/GetSlideAnimations.php" target="_blank">Reading Animation Information from a PowerPoint Presentation</a></li> | |
<li><a href="src/WorkingWithAnimations/UpdateSlideAnimationInteractiveSequence.php" target="_blank">Updating the interactive sequence of a PowerPoint Presentation</a></li> | |
<li><a href="src/WorkingWithAnimations/UpdateSlideAnimationInteractiveSequenceEffect.php" target="_blank">Updating the MainSequence of an animation in a PowerPoint Slide</a></li> | |
</ol> | |
</li> | |
<li> | |
<h3> | |
Working with Notes Slides</h3> | |
<ol> | |
<li><a href="src/WorkingWithNotesSlides/AddNoteSlide.php" target="_blank">Adding a NoteSlide to a PowerPoint Presentation</a></li> | |
<li><a href="src/WorkingWithNotesSlides/UpdateNoteSlide.php" target="_blank">Updating a NoteSlide to a PowerPoint Presentation</a></li> | |
<li><a href="src/WorkingWithNotesSlides/GetNotesSlideWithFormats.php" target="_blank">Extract and Download a NoteSlide from a PowerPoint Presentation</a></li> | |
<li><a href="src/WorkingWithNotesSlides/GetNotesSlides.php" target="_blank">Read NoteSlide information from a PowerPoint Presentation</a></li> | |
</ol> | |
</li> | |
<li> | |
<h3> | |
Working with Images</h3> | |
<ol> | |
<li><a href="src/WorkingWithImages/GetSlidesImage.php" target="_blank">Get Image Information from a PowerPoint Document</a></li> | |
<li><a href="src/WorkingWithImages/GetSlidesSlideImage.php" target="_blank">Get Image Information from a Slide in a PowerPoint Document</a></li> | |
<li><a href="src/WorkingWithImages/GetSlidesImageWithDefaultFormats.php" target="_blank">Extract an image from a PowerPoint Document</a></li> | |
<li><a href="src/WorkingWithImages/GetSlidesImageWithFormats.php" target="_blank">Extract image by a particular format from a PowerPoint Document</a></li> | |
</ol> | |
</li> | |
<li> | |
<h3> | |
Working with Shapes</h3> | |
<ol> | |
<li><a href="src/WorkingWithShapes/GetSlidesSlideShapes.php" target="_blank">Extract Shapes from a Slide</a></li> | |
<li><a href="src/WorkingWithShapes/GetSlidesSlideShape.php" target="_blank">Get a Particular Shape from the Slide</a></li> | |
<li><a href="src/WorkingWithShapes/GetSlidesSlideShapesStorage.php" target="_blank">Extract Shapes from a Slide Using Third Party Storage</a></li> | |
<li><a href="src/WorkingWithShapes/AddShapeObjectToGroupShape.php" target="_blank">Add a Shape object to a Group Shape</a></li> | |
<li><a href="src/WorkingWithShapes/DeleteShapeObjectToGroupShape.php" target="_blank">Deleting a Shape object from a Group Shape</a></li> | |
<li><a href="src/WorkingWithShapes/AddSmartArtShape.php" target="_blank">Add Smart Art Shape</a></li> | |
<li><a href="src/WorkingWithShapes/UpdateSmartArtShape.php" target="_blank">Update Smart Art Shape</a></li> | |
<li><a href="src/WorkingWithShapes/DeletShapeByIndex.php" target="_blank">Deleting shapes by Index in a Presentation</a></li> | |
<li><a href="src/WorkingWithShapes/EditParagraphswithGroupedShapes.php" target="_blank">Editing Paragraphs within Grouped Shapes</a></li> | |
</ol> | |
</li> | |
<li> | |
<h3> | |
Working with Text</h3> | |
<ol> | |
<li><a href="src/WorkingWithText/GetSlidesPresentationTextItem.php" target="_blank">Read TextItems from a PowerPoint Presentation</a></li> | |
<li><a href="src/WorkingWithText/SlidesPresentationReplaceText.php" target="_blank">Replace occurrence of a Text in a PowerPoint Presentation</a></li> | |
</ol> | |
</li> | |
<li> | |
<h3> | |
Working with Document Properties</h3> | |
<ol> | |
<li><a href="src/WorkingWithDocumentProperties/GetSlidesDocumentPropertiesAll.php" target="_blank">Reading Properties from a PowerPoint Presentation</a></li> | |
<li><a href="src/WorkingWithDocumentProperties/AddSlidesSetDocumentProperties.php" target="_blank">Adding Custom Properties to a PowerPoint Presentation</a></li> | |
<li><a href="src/WorkingWithDocumentProperties/UpdateSlidesSetDocumentProperty.php" target="_blank">Update an existing document property in a PowerPoint Presentation</a></li> | |
<li><a href="src/WorkingWithDocumentProperties/DeleteSlidesDocumentPropertiesAll.php" target="_blank">Removing properties from a PowerPoint Presentation</a></li> | |
</ol> | |
</li> | |
<li> | |
<h3> | |
Working with Custom Fonts</h3> | |
<ol> | |
<li><a href="src/WorkingWithCustomFonts/AddNewSlideWithCustomFont.php" target="_blank">Using fontsLocation Parameter to specify custom fonts</a></li> | |
</ol> | |
</li> | |
<li> | |
<h3> | |
Working with Chart Series</h3> | |
<ol> | |
<li><a href="src/WorkingWithChartSeries/AddChartSeries.php" target="_blank">Add Chart Series</a></li> | |
<li><a href="src/WorkingWithChartSeries/UpdateChartSeries.php" target="_blank">Update Chart Series</a></li> | |
<li><a href="src/WorkingWithChartSeries/DeleteChartSeries.php" target="_blank">Delete Chart Series</a></li> | |
</ol> | |
</li> | |
</ul> | |
<br /> | |
<hr /><br /> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$fileName2 = "test-unprotected2.ppt"; | |
// Upload original documents to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName2, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName2, CommonUtils::$MyStorage)); | |
$mergeList = new Model\PresentationsMergeRequest(); | |
$mergeList->presentationPaths = array($fileName, $fileName2); | |
$request = new Requests\PostPresentationMergeRequest($fileName, $mergeList); | |
$result = $slidesApi->postPresentationMerge($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
// Create request and execute api method | |
$request = new Requests\MoveFileRequest("NewFolder\\test.ppt", "NewFolder\\test1.ppt", CommonUtils::$MyStorage, CommonUtils::$MyStorage); | |
$slidesApi->moveFile($request); | |
echo("Moved"); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
// Create request and execute api method | |
$request = new Requests\MoveFolderRequest("NewFolder", "NewFolder\NewFolder1", CommonUtils::$MyStorage, CommonUtils::$MyStorage); | |
$slidesApi->moveFolder($request); | |
echo("Moved"); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$oldPosition = array(2, 3); | |
$newPosition = array(1, 2); | |
$notesSlide = new Model\NotesSlide(); | |
$notesSlide->setText("New slide"); | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\PostSlidesReorderManyRequest($fileName, $oldPosition, $newPosition); | |
$result = $slidesApi->postSlidesReorderMany($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\PostSlidesPresentationReplaceTextRequest($fileName, "old value", "new value text", true); | |
$result = $slidesApi->postSlidesPresentationReplaceText($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\PostSlidesSplitRequest($fileName, null, Model\SlideExportFormat::JPEG); | |
$result = $slidesApi->postSlidesSplit($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$slideIndex = 1; | |
$shapeIndex = 1; | |
$lstDataPoints = array(new Model\OneValueChartDataPoint(), new Model\OneValueChartDataPoint()); | |
$dto = new Model\OneValueSeries(); | |
$dto->DataPoints = $lstDataPoints; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\PostChartSeriesRequest($fileName, $slideIndex, $shapeIndex, $dto, null, null, CommonUtils::$MyStorage); | |
$result = $slidesApi->postChartSeries($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$index = 2; | |
$notesSlide = new Model\NotesSlide(); | |
$notesSlide->setText("updated notes slide text."); | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\PutUpdateNotesSlideRequest($fileName, $index, $notesSlide); | |
$result = $slidesApi->putUpdateNotesSlide($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$index = 2; | |
$interactiveSequence = new Model\InteractiveSequence(); | |
$interactiveSequence->setTriggerShapeIndex(3); | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\PostSlideAnimationInteractiveSequenceRequest($fileName, $index, $interactiveSequence); | |
$result = $slidesApi->postSlideAnimationInteractiveSequence($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$index = 2; | |
$sequenceIndex = 1; | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\PostSlideAnimationInteractiveSequenceEffectRequest($fileName, $index, $sequenceIndex); | |
$result = $slidesApi->postSlideAnimationInteractiveSequenceEffect($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$property = new Model\DocumentProperty(); | |
$property->setName("MyCustom"); | |
$property->setValue("My custom property value"); | |
$property->setBuiltIn(false); | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\PutSlidesSetDocumentPropertyRequest($fileName, "MyCustom", $property); | |
$result = $slidesApi->putSlidesSetDocumentProperty($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$index = 2; | |
$shapeIndex = 1; | |
$smartArtShape = new Model\SmartArtShape(); | |
$smartArtShape->setShapeType(Model\ShapeBase::SHAPE_TYPE_CALLOUT2); | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\PutUpdateNotesSlideShapeRequest($fileName, $index, $shapeIndex, $smartArtShape); | |
$result = $slidesApi->putUpdateNotesSlideShape($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test.ppt"; | |
// Upload document to Cloud Storage | |
$result = $slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php | |
include(dirname(__DIR__) . '\CommonUtils.php'); | |
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi; | |
use Aspose\Slides\Cloud\Sdk\Api\Configuration; | |
use Aspose\Slides\Cloud\Sdk\Model; | |
use Aspose\Slides\Cloud\Sdk\Model\Requests; | |
try { | |
// Create SlidesApi instance | |
$config = new Configuration(); | |
$config->setAppSid(CommonUtils::$AppSid); | |
$config->setAppKey(CommonUtils::$AppKey); | |
$slidesApi = new SlidesApi(null, $config); | |
$fileName = "test-unprotected.ppt"; | |
$index = 1; | |
$slideBackground = new Model\SlideBackground(); | |
$slideBackground->setType(Model\SlideBackground::TYPE_SOLID); | |
// Upload original document to storage | |
$slidesApi->uploadFile(new Requests\UploadFileRequest($fileName, realpath(__DIR__ . '/../..') . '\resources\\' . $fileName, CommonUtils::$MyStorage)); | |
$request = new Requests\PutSlidesSlideBackgroundRequest($fileName, $index, $slideBackground); | |
$result = $slidesApi->putSlidesSlideBackground($request); | |
print_r($result); | |
} catch (Exception $e) { | |
echo "Something went wrong: ", $e->getMessage(), "\n"; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment