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

Introduction

Aspose.HTML Cloud has provided an API to convert HTML page to the raster image format (JPEG, PNG, BMP or TIFF). You can convert the HTML document either from the storage by its name or from the web by its URL to the specified image format.

The outFormat parameter value could be one of the following:

  • jpeg
  • bmp
  • png
  • tiff

Resource URI

Aspose.HTML for Cloud APIs' Swagger UI lets you call this REST API directly from the browser. The description of the API and its parameters is also given there. 

cURL Example

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

Input Document: testpage4_embcss.html

Output Document: testpage4_embcss.jpeg

 Request
 Response

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

 Request
 Response

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

 Request
 Response

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

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

SDK Examples

Case 1: Convert the HTML document from the storage by its name to the specified image format

 C#

Case 2: Convert the HTML page from the web by its URL to the specified image format

 C#
Labels
  • No labels