We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed last month.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
您可以使用 aspose.slides.slides for node.js cloud sdk for node.js 将其转换为pdf,pdg,png,png ,还有许多其他格式a>。以下代码示例向您展示了如何使用aspose.spose.spose Cloud:
这是付费产品,将PowerPoint演示文稿转换为PDF文档,但是您可以每月进行150个免费的API调用以进行演示转换和其他目的。它提供了用于管理演示文稿的基于REST的API。我在Aspose担任支持开发人员。
You can use Aspose.Slides Cloud SDK for Node.js to convert presentations to PDF, PNG, and many other formats. The following code example shows you how to convert a PowerPoint presentation to a PDF document using Aspose.Slides Cloud:
This is a paid product, but you can make 150 free API calls per month for presentation conversions and other purposes. It provides a REST-based API for managing presentations. I work as a Support Developer at Aspose.
进行此类转换而不必使用付费云服务确实很棘手。因此,我创建了一个NPM软件包,该软件包允许进行此类转换等等: htttps:// https:// www.npmjs.com/package/file-converter-nodejs
注意,此工具要求您安装了libreoffice(对于某些特定的文件操作,PPT到PDF只需要Libreoffice)
请 必须安装这些依赖项,因此我创建了一个docker映像,该图像已经包含所有必需的依赖项: https://hub.docker.com/r/azertyha77/nodejs-python-soffice
如果您不知道从哪里开始,则可以查看这个简单的示例项目:
It is indeed quite tricky to do such conversions without having to use a paid cloud service. So I have created an npm package that allows for such conversions and much more: https://www.npmjs.com/package/file-converter-nodejs
Note that this tool requires that you have LibreOffice installed (and python for some specific file operations, ppt to pdf will only require libreOffice)
It might be a bit overwhelming to have to install these dependencies so I have created a docker image which already includes all required dependencies: https://hub.docker.com/r/azertyha77/nodejs-python-soffice
If you don't know where to start, you can have a look at this simple example project: https://gitlab.com/bouhelalhamza/file-converter/-/tree/master/example?ref_type=heads