File Conversion – Aspose.HTML Cloud

This article explains how to convert files using Aspose.HTML Cloud API in both synchronous and asynchronous modes. While this example demonstrates converting HTML to PDF, the API supports many other formats. You can convert between the following formats by simply changing the URL path:

Before starting, make sure you have obtained an authorization token. See Authorization Guide for more information.

File Conversion Methods

Aspose.HTML Cloud offers two methods for file conversion:


1. Synchronous File Conversion

Endpoint: POST https://api.aspose.cloud/v4.0/html/conversion/html-pdf/sync

Authorization: Bearer token

Request Body:

1{
2    "InputPath": "http://help.websiteos.com/websiteos/example_of_a_simple_html_page.htm"
3}

Response: The API returns the converted file directly.


2. Asynchronous File Conversion

Steps:

  1. Submit conversion request
  2. Check conversion status
  3. Download the converted file

See Also