Convert Word to PowerPoint Presentation using Node.js

Convert Word to PowerPoint Presentation using Node.js

Convert Word to PowerPoint PPT or PPTX programmatically on the cloud. As a Node.js developer, you can easily convert Word to PowerPoint PPTX online in your Node.js applications. In this article, we will demonstrate on how to convert Word to PowerPoint Presentation using Node.js.

The following topics shall be covered in this article:

Word to PowerPoint Conversion REST API and Node.js SDK

I will be using the Node.js SDK of GroupDocs.Conversion Cloud API for converting DOCX to PPTX/PPTX. The API allows you to convert your documents to any format you need. It supports the conversion of over 50 types of documents and images such as Word, Excel, PowerPoint, PDF, HTML, JPG, PNG, CAD. It also provides .NET, Java, PHP, Ruby, Android, and Python SDKs as its document conversion family members for the Cloud API.

You can install GroupDocs.Conversion Cloud to your Node.js applications using the following command in the console:

npm install groupdocs-conversion-cloud

Please get your Client ID and Client Secret from the dashboard before you start following the steps and available code examples. Once you have your ID and secret, add in the code as shown below:

How to Convert Word to PowerPoint file format using Node.js API

You can convert word file to ppt or pptx file by following the simple steps given below:

  1. Upload the PowerPoint file to the cloud
  2. Convert DOCX to PPTX online in Node.js
  3. Download the converted PowerPoint file

Upload the file

Firstly, upload the Word file to the Cloud using the following code sample:

As a result, the uploaded word file will be available in the files section of your dashboard on the cloud.

Convert Word to PowerPoint using Node.js

Please follow the steps mentioned below to convert Word to PPTX file programmatically:

  • Create an instance of ConvertApi
  • Create ConvertSettings instance
  • Provide your storage Name
  • Set the word file path
  • Assign “pptx” to format
  • Provide output file path
  • Create ConvertDocumentRequest
  • Get results by calling the ConvertApi.convertDocument() method

The following code example shows how to convert Word to PowerPoint format using REST API in Node.js:

How to convert Word to PowerPoint using Node.js

Convert Word to PowerPoint using Node.js

Download the Converted File

The above code sample will save the converted PowerPoint file on the cloud. You can download it using the following code sample:

Convert Word DOCX to PowerPoint in Node.js using Advanced Options

Please follow the steps mentioned below using word to PowerPoint online converter API with some advanced settings:

  • Create an instance of ConvertApi
  • Create ConvertSettings instance
  • Provide your storage Name
  • Set the word file path
  • Assign “pptx” to format
  • Create DocxLoadOptions instance
  • Set hideWordTrackedChanges and defaultFont values
  • Now, define PptxConvertOptions
  • Set various convert settings such as fromPage, pagesCount and zoom, etc.
  • Assign loadOptions, and convertOptions
  • Next, provide output file path
  • Create ConvertDocumentRequest
  • Get results by calling the ConvertApi.convertDocument() method

The following code example shows how to convert word to ppt/pptx file online using advanced convert options:

Online Word to PowerPoint Converter Free

How to use word to pptx converter online free? Please try the following free word to pptx converter online, which is developed using the above API.

Conclusion

In this article, you have learned:

  • how to convert word to PowerPoint format on the cloud;
  • upload the docx file and then download the converted PowerPoint file from the cloud;
  • how to convert word to PowerPoint using advanced options;

You can learn more about GroupDocs.Conversion Cloud API using the documentation. We also provide an API Reference section that lets you visualize and interact with our APIs directly through the browser.

Ask a question

You can ask your queries about how to convert Word to PowerPoint presentation, via our Free Support Forum

See Also