Free Support Forum - aspose.cloud

Convert Microsoft PowerPoint Presentation to HTML with PHP using Aspose.Slides REST API turns background to black

When converting attached file all backgrounds (except 1 slide) turn black.

For other files service work fine.

Hi Mark,

Thank you for sharing the file.

I tested your issue and I am unable to notice the problem you mentioned. Please share the sample code you are using to convert the file. We will further check it and get back to you.

Thanks & Regards,

$baseUrl = $config['base_url'];
require_once($baseUrl."vendor/aspose/cloud-sdk-php/src/Aspose/Cloud/Common/AsposeApp.php");
require_once($baseUrl."vendor/aspose/cloud-sdk-php/src/Aspose/Cloud/Common/Product.php");
require_once($baseUrl."vendor/aspose/cloud-sdk-php/src/Aspose/Cloud/Common/Utils.php");
require_once($baseUrl."vendor/aspose/cloud-sdk-php/src/Aspose/Cloud/Slides/Converter.php");
require_once($baseUrl."vendor/aspose/cloud-sdk-php/src/Aspose/Cloud/Storage/Folder.php");
AsposeApp::$appSID = $config['aspose']['appSID'];
AsposeApp::$appKey = $config['aspose']['appKey'];
Product::$baseProductUri = "http://api.aspose.com/v1.1";
AsposeApp::$outPutLocation = $baseUrl ."public/" . $media->realPath;

$filePath = $baseUrl ."public/" . $media->realPath . $media->realName;//path to file on server
$file = basename($filePath);
$folderPath = "";
$folder = new Folder();
$folder->uploadFile($filePath, $folderPath);
$doc = new Converter ($file);
$doc->saveFormat = "html";
$result = $doc->convert();

Hi Mark,

Thank you for sharing the code.

Please share the output html file with us as well because I am still unable to reproduce the issue.

Thanks & Regards,

Ok. now i see there is problem on my side thanks for help