使用在线 PPT 编辑器在线编辑 PPTX

GroupDocs.Editor 提供 Cloud SDK 和 REST API,以便以编程方式创建和操作 PPT/PPTX 文件。您可以找到多篇关于如何以不同编程语言以编程方式处理 PowerPoint 演示文稿的文章。此外,还有一个在线PowerPoint编辑软件可以在任何网络浏览器中在线编辑PPTX。然而,这个在线工具由 GroupDocs.Editor Cloud SDK 提供支持,并提供广泛的功能。那么,让我们看看这个基于 Web 的工具的实际操作并在线编辑 PPT/PPTX 文件。因此,请完整阅读这篇博文来探索这个在线工具

这篇博文将涵盖以下几点:

GroupDocs.Editor 的 PowerPoint 编辑软件

Microsoft PowerPoint 是一种非常流行的用于制作商业/教育演示文稿的软件。您需要在计算机上安装此软件,这有时会变成一项繁忙的任务,因为它需要内存和处理时间来执行操作。因此,GroupDocs.Editor推出了一款多平台在线PPT编辑器,让用户可以在网络浏览器中编辑PowerPoint文件。

这个在线编辑器最酷的一点是您可以在任何网络浏览器中打开并使用它。此外,还有一个很好的拖放界面来上传 PPT/PPTX 文件。上传文件后,您将进入编辑器,您可以在其中根据您的要求编辑演示文稿。

在线PPT编辑器

还有许多其他选项,例如更改字体系列、字体大小、插入图像、编辑外部链接等等。在下一节中,我们将完成在线编辑 PPTX 所需的所有步骤。

在线编辑 PPTX

以下步骤演示了如何在线编辑 PowerPoint 文件:

  • 在任何网络浏览器中打开此在线 PowerPoint 编辑软件。
  • 拖放源 PPTX/PPT 文件或使用文件资源管理器上传它。
  • 文件上传后,您将进入编辑器窗口。
  • 进行更改,然后按顶部菜单栏上的“保存文档”图标。
  • 从顶部菜单栏下载编辑后的文档。

整个过程如下视频所示:

在线编辑pptx

同样,您可以在顶部菜单栏中找到其他选项,例如以 PDF 文件格式下载已编辑的文件、创建新文档等。

如何在手机中编辑 PPT?

除了文件编辑之外,这款在线 PowerPoint 编辑软件 还可以让您从头开始创建 PPT/PPTX 文件。事实上,这个在线工具在手机上运行得很好,因为您可以通过在手机的网络浏览器中打开该工具来创建和处理 PowerPoint 文件。 GroupDocs.Editor Cloud SDK 在幕后发挥着所有作用。

在 C# 中编辑 PPTX

请按照以下步骤以编程方式在 C# 中编辑 PowerPoint 文件:

  • 在您的项目中安装 GroupDocs.Editor Cloud SDK for .NET
  • 获取以下代码片段,输入您的 API 凭据,设置文件路径,然后运行服务器以在 .NET 中编辑 PPTX。
using GroupDocs.Editor.Cloud.Sdk.Api;
using GroupDocs.Editor.Cloud.Sdk.Client;
using GroupDocs.Editor.Cloud.Sdk.Model.Requests;
using System;
using GroupDocs.Editor.Cloud.Sdk.Model;
using FileInfo = GroupDocs.Editor.Cloud.Sdk.Model.FileInfo;
using GroupDocs.Editor.Cloud.Sdk.Model;
using System.Text;

namespace GroupDocs.Editor
{
    
    // 本例演示如何删除PDF密码
    public class RemovePDFPassword
    {
         static void Main(string[] args)
        {
            
            string MyAppKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; // Get AppKey and AppSID from https://dashboard.groupdocs.cloud
            string MyAppSid = "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"; // Get AppKey and AppSID from https://dashboard.groupdocs.cloud

            var configuration = new Configuration(MyAppSid, MyAppKey);

            // 创建必要的API实例
            var editApi = new EditApi(configuration);
            var fileApi = new FileApi(configuration);

            // 该文档已上传到存储中。
            // 将其加载为可编辑状态
            var loadOptions = new PresentationLoadOptions
            {
                FileInfo = new FileInfo
                {
                    FilePath = "/first.pptx"
                },
                OutputPath = "output",
                SlideNumber = 0
            };
            var loadResult = editApi.Load(new LoadRequest(loadOptions));

            // 下载html文档
            var stream = fileApi.DownloadFile(new DownloadFileRequest(loadResult.HtmlPath));
            var htmlString = new StreamReader(stream, Encoding.UTF8).ReadToEnd();

            // 编辑一些东西...
            htmlString = htmlString.Replace("Slide sub-heading", "Hello People!");

            // 将 html 上传回存储
            fileApi.UploadFile(new UploadFileRequest(loadResult.HtmlPath,
                new MemoryStream(Encoding.UTF8.GetBytes(htmlString))));

            // 将 html 保存回 pptx
            var saveOptions = new PresentationSaveOptions
            {
                FileInfo = loadOptions.FileInfo,
                OutputPath = "output/edited.pptx",
                HtmlPath = loadResult.HtmlPath,
                ResourcesPath = loadResult.ResourcesPath
            };
            var saveResult = editApi.Save(new SaveRequest(saveOptions));
        }
    }
}

在 Node.js 中编辑 PPTX/PPT

请按照以下步骤以编程方式在 Node.js 中编辑 PPTX:

// 如需完整示例和数据文件,请访问 https://github.com/groupdocs-editor-cloud/groupdocs-editor-cloud-node-samples
global.editor_cloud = require("groupdocs-editor-cloud");
 
global.appSid = "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"; // Get AppKey and AppSID from https://dashboard.groupdocs.cloud
global.appKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; // Get AppKey and AppSID from https://dashboard.groupdocs.cloud
  
global.editApi = editor_cloud.EditApi.fromKeys(appSid, appKey);
global.fileApi = editor_cloud.FileApi.fromKeys(appSid, appKey);
 
 
// 该文档已上传到存储中。
// 将其加载为可编辑状态      
let fileInfo = new editor_cloud.FileInfo();
fileInfo.filePath = "first.pptx";     
let loadOptions = new editor_cloud.PresentationLoadOptions();
loadOptions.fileInfo = fileInfo;
loadOptions.outputPath = "output";
editApi.load(new editor_cloud.LoadRequest(loadOptions)).then((loadResult)=>{

    // 下载html文档
  fileApi.downloadFile(new editor_cloud.DownloadFileRequest(loadResult.htmlPath)).then((buf)=>{
        let htmlString = buf.toString("utf-8");
        
        // 编辑一些东西...
        htmlString = htmlString.replace("Slide sub-heading", "Hello people!");
        
        // 将 html 上传回存储
        fileApi.uploadFile(new editor_cloud.UploadFileRequest(loadResult.htmlPath, new Buffer(htmlString, "utf-8"))).then(()=>{
            // 将 html 保存回 docx
            let saveOptions = new editor_cloud.PresentationSaveOptions();
            saveOptions.fileInfo = fileInfo;
            saveOptions.outputPath = "output/edited.pptx";
            saveOptions.htmlPath = loadResult.htmlPath;
            saveOptions.resourcesPath = loadResult.resourcesPath;
            editApi.save(new editor_cloud.SaveRequest(saveOptions)).then((saveResult)=>{
                // 完毕。
                console.log("Document edited: " + saveResult.path);
            })
            
            
        })
      
       
    })
    
});

最后的想法

感谢您仔细阅读本文。我们希望您已经探索过这个在线 PPT 编辑器 并发现它很有帮助。此外,我们还演示了在线编辑 PPTX 的所有步骤。如果您希望在线创建和操作 PowerPoint 演示文稿,此工具可以提高您的工作效率。此外,请与我们的 REST API 交互此处以获得实时体验。最重要的是,您可以访问 GroupDocs.Editor文档 来了解所提供的功能。

此外,我们建议您遵循我们的入门指南

最后,groupdocs.cloud正在撰写新文章。因此,请保持联系以获取最新更新。

问一个问题

您可以在我们的论坛上告诉我们您的问题或疑问。

常见问题 – 常见问题解答

如何在线编辑 PPTX 文件?

请使用此在线 PPT 编辑器在网络浏览器中编辑 PowerPoint 文件。

如何在手机上免费编辑PPT?

请访问此链接以详细了解答案。

用于 PowerPoint 编辑的免费应用程序是什么?

GroupDocs.Editor Cloud SDKs支持此工具在线编辑PPTX。您可以导航至此链接了解更多详细信息。

也可以看看