PPTX转换器到SVG格式,与画布一起使用

发布于 2025-01-25 22:14:22 字数 1551 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情话墙 2025-02-01 22:14:22

您可以使用 aspose.slides.slides cloud sdk for php 用于将演示幻灯片转换为SVG图像。以下代码示例向您展示了如何执行此操作:

use Aspose\Slides\Cloud\Sdk\Api\Configuration;
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi;

$configuration = new Configuration();
$configuration->setAppSid("my_client_id");
$configuration->setAppKey("my_client_secret");

$slidesApi = new SlidesApi(null, $configuration);

// Convert a presentation to SVG images.
$fileStream = fopen("example.pptx", "r");
$response = $slidesApi->convert($fileStream, "svg");

print("A ZIP file with the slides as SVG images was saved to " . $response->getPathname());

Aspose.slides Cloud SDK提供基于REST的API来管理演示文稿。这是一种付费产品,但是您可以每月拨打150个免费API电话,以评估所有功能和您的目的。

您还可以使用免费的 aspose幻灯片在线转换器将PowerPoint演示转换为其他格式。我在Aspose担任支持开发人员。

You can use Aspose.Slides Cloud SDK for PHP for converting presentation slides to SVG images. The following code example shows you how to do this:

use Aspose\Slides\Cloud\Sdk\Api\Configuration;
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi;

$configuration = new Configuration();
$configuration->setAppSid("my_client_id");
$configuration->setAppKey("my_client_secret");

$slidesApi = new SlidesApi(null, $configuration);

// Convert a presentation to SVG images.
$fileStream = fopen("example.pptx", "r");
$response = $slidesApi->convert($fileStream, "svg");

print("A ZIP file with the slides as SVG images was saved to " . $response->getPathname());

Aspose.Slides Cloud SDK provides REST-based APIs for managing presentations. This is a paid product, but you can make 150 free API calls per month for evaluating all features and your purposes.

You can also use a free Aspose Slides Online Converter for converting PowerPoint presentations to other formats. I work as a Support Developer at Aspose.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文