Skip to end of metadata
Go to start of metadata
Contents Summary
  

Introduction

This REST API allows you to create a new Word Document. The document is created with a format that is recognized from file extensions. The supported formats are:

FormatExtensionDescription
Doc".doc"Microsoft Word 97 - 2007 Document format
Docx".docx"Office Open XML WordprocessingML Document (macro-free)
Docm".docm"Office Open XML WordprocessingML Macro-Enabled Document
Dot".dot"Microsoft Word 97 - 2007 Template format
Dotm".dotm"Office Open XML WordprocessingML Macro-Enabled Template
Dotx".dotx"Office Open XML WordprocessingML Template (macro-free)
FlatOpc".flatopc", ".fopc"Office Open XML WordprocessingML stored in a flat XML file instead of a ZIP package
FlatOpcMacroEnabled".flatopc_macro", ".fopc_macro"Office Open XML WordprocessingML Macro-Enabled Document stored in a flat XML file instead of a ZIP package.
FlatOpcTemplate".flatopc_template", ".fopc_template"Office Open XML WordprocessingML Template (macro-free) stored in a flat XML file instead of a ZIP package.
FlatOpcTemplateMacroEnabled".flatopc_template_macro", ".fopc_template_macro"Office Open XML WordprocessingML Macro-Enabled Template stored in a flat XML file instead of a ZIP package.
WordML".wordml", ".wml"Microsoft Word 2003 WordprocessingML format.
Rtf".rtf"RTF format. All characters above 7-bits are escaped as hexadecimal or Unicode characters

and the request parameters are the following:

Parameter NameQuery String/HTTPBodyDescription
fileNameQuery String: fileName=documentName.docxThe file name.

Resource URI

Swagger UI lets you call this REST API directly from the browser.  

cURL Example

 Request
 Response

SDKs

Using an SDK (API client) is the quickest way for a developer to speed up the development. An SDK takes care of a lot of low-level details of making requests and handling responses and lets you focus on writing code specific to your particular project. Check out our GitHub repository for a complete list of Aspose.Words Cloud SDKs along with working examples, to get you started in no time. Please check Available SDKs article to learn how to add an SDK to your project.

SDK Examples

 C#
 Java
 PHP
 Python
 Ruby
 Node.js
 Android
 Swift
 Go
Labels
  • No labels