HTML to DOCX Conversion

Introduction

Aspose.HTML Cloud has provided the simplest API to convert an HTML page to the fixed-layout document format DOCX (Microsoft Word). You can convert the HTML document to XPS either from the storage by its name or from the web by its URL.

API Information

API Type Description Swagger Link
/html/{name}/convert/doc GET Converts the HTML document (located on storage) to DOCX and returns resulting file in response content GetConvertDocumentToDoc
/html/{name}/convert/doc PUT Converts the HTML document (located on storage) to DOCX and uploads resulting file to storage PutConvertDocumentToDoc
/html/convert/doc GET Converts the HTML page (located in the Web) to DOCX and returns resulting file in response content GetConvertDocumentToDocByUrl
/html/convert/doc POST Converts the HTML document (in request content) to DOCX and uploads resulting file to storage PostConvertDocumentInRequestToDoc

cURL Example

Case 1: Converts the HTML document (located on storage) to DOCX and returns resulting file in response content:

Case 2: Converts the HTML document (located on storage) to DOC and uploads resulting file to storage:

Case 3: Converts the HTML page (located in the Web) to DOCX and returns resulting file in response content:

Case 4: Converts the HTML document (in request content) to DOCX and uploads resulting file to storage:

Available 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.HTML 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.