Aspose.HTML-Cloud 20.5.0

Aspose.HTML Cloud for .NET is a programming SDK that allows software developers to manipulate and convert HTML documents from within their own applications. A Wrapper of RESTful APIs, Aspose.HTML Cloud for .NET speeds up HTML programming and conversion.

Install-Package Aspose.HTML-Cloud -Version 20.5.0
dotnet add package Aspose.HTML-Cloud --version 20.5.0
<PackageReference Include="Aspose.HTML-Cloud" Version="20.5.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Aspose.HTML-Cloud --version 20.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

HTML Rendering & Conversion .NET Cloud REST API

Nuget Nuget GitHub

This cloud SDK assists to develop cloud-based HTML page rendering, processing, translation & conversion apps in C#, ASP.NET & other .NET languages via REST API.

HTML Processing Features

  • Fetch the HTML page along with its resources as a ZIP archive by providing page URL.
  • Based on page URL, retrieve all images of an HTML page as a ZIP package.
  • Load data from a local file to populate the HTML document template.
  • Use request body to populate the HTML document template.
  • Convert HTML page to numerous other file formats.

New Features & Enhancements Nuget

  • Added Configuration.AddDefaultHeader. It provides the ability to specify custom headers which will be added to each HTTP request beneath API calls.

For the detailed notes, please visit Release Notes - 2020.

Read & Write HTML Formats

HTML, XHTML, zipped HTML, zipped XHTML, MHTML, HTML containing SVG markup, Markdown, JSON

Save HTML As

Fixed Layout: PDF, XPS
Images: TIFF, JPEG, PNG, BMP, GIF
Other: TXT, ZIP (images)

Read HTML Formats

eBook: EPUB
Other: XML, SVG

Getting Started with Aspose.HTML Cloud SDK for .NET

You do not need to install anything to get started with Aspose.HTML Cloud SDK for .NET. Just create an account at Aspose for Cloud and get your application information.

Simply execute Install-Package Aspose.HTML-Cloud from the Package Manager Console in Visual Studio to fetch & reference Aspose.HTML assembly in your project. If you already have Aspose.HTML Cloud SDK for .NET and want to upgrade it, please execute Update-Package Aspose.HTML-Cloud to get the latest version.

Please check the GitHub Repository for other common usage scenarios.

Convert HTML Page to PDF based on its URL

The following code sample demonstrates, how to programmatically fetch an HTML web page via its URL and convert it into a PDF file using C# code:

string appSID = "xxxxxxxx";
string appKey = "xxxxxxxx";
string basePath = "https://api.aspose.cloud/v3.0";

string sourceUrl = @"https://stallman.org/articles/anonymous-payments-thru-phones.html";

Aspose.Html.Cloud.Sdk.Api.ConversionApi conversionApi = new Aspose.Html.Cloud.Sdk.Api.ConversionApi(appKey, appSID, basePath);
var response = conversionApi.GetConvertDocumentToPdfByUrl(sourceUrl, 800, 1200);

Extract all Images from a Web-based HTML Page using API

The following C# code sample elaborates, how to programmatically extract all images of an HTML web page by providing its URL:

var url = @"http://www.sukidog.com/jpierre/strings/why.htm";
Stream stream = DocumentApi.GetDocumentImagesByUrl(url);

Home | Product Page | Docs | Demos | API Reference | Examples | Blog | Free Support | Free Trial

HTML Rendering & Conversion .NET Cloud REST API

Nuget Nuget GitHub

This cloud SDK assists to develop cloud-based HTML page rendering, processing, translation & conversion apps in C#, ASP.NET & other .NET languages via REST API.

HTML Processing Features

  • Fetch the HTML page along with its resources as a ZIP archive by providing page URL.
  • Based on page URL, retrieve all images of an HTML page as a ZIP package.
  • Load data from a local file to populate the HTML document template.
  • Use request body to populate the HTML document template.
  • Convert HTML page to numerous other file formats.

New Features & Enhancements Nuget

  • Added Configuration.AddDefaultHeader. It provides the ability to specify custom headers which will be added to each HTTP request beneath API calls.

For the detailed notes, please visit Release Notes - 2020.

Read & Write HTML Formats

HTML, XHTML, zipped HTML, zipped XHTML, MHTML, HTML containing SVG markup, Markdown, JSON

Save HTML As

Fixed Layout: PDF, XPS
Images: TIFF, JPEG, PNG, BMP, GIF
Other: TXT, ZIP (images)

Read HTML Formats

eBook: EPUB
Other: XML, SVG

Getting Started with Aspose.HTML Cloud SDK for .NET

You do not need to install anything to get started with Aspose.HTML Cloud SDK for .NET. Just create an account at Aspose for Cloud and get your application information.

Simply execute Install-Package Aspose.HTML-Cloud from the Package Manager Console in Visual Studio to fetch & reference Aspose.HTML assembly in your project. If you already have Aspose.HTML Cloud SDK for .NET and want to upgrade it, please execute Update-Package Aspose.HTML-Cloud to get the latest version.

Please check the GitHub Repository for other common usage scenarios.

Convert HTML Page to PDF based on its URL

The following code sample demonstrates, how to programmatically fetch an HTML web page via its URL and convert it into a PDF file using C# code:

string appSID = "xxxxxxxx";
string appKey = "xxxxxxxx";
string basePath = "https://api.aspose.cloud/v3.0";

string sourceUrl = @"https://stallman.org/articles/anonymous-payments-thru-phones.html";

Aspose.Html.Cloud.Sdk.Api.ConversionApi conversionApi = new Aspose.Html.Cloud.Sdk.Api.ConversionApi(appKey, appSID, basePath);
var response = conversionApi.GetConvertDocumentToPdfByUrl(sourceUrl, 800, 1200);

Extract all Images from a Web-based HTML Page using API

The following C# code sample elaborates, how to programmatically extract all images of an HTML web page by providing its URL:

var url = @"http://www.sukidog.com/jpierre/strings/why.htm";
Stream stream = DocumentApi.GetDocumentImagesByUrl(url);

Home | Product Page | Docs | Demos | API Reference | Examples | Blog | Free Support | Free Trial

Release Notes

Aspose.HTML Cloud for .NET SDK release (v.20.5):
 - new feature: Configuration.AddDefaultHeader added; it provides ability to specify custom headers that will be added to each HTTP request beneath API calls.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
20.5.0 158 5/26/2020
19.11.0 208 12/5/2019
19.10.1 115 11/6/2019
19.10.0 172 10/30/2019
19.9.3 120 10/23/2019
19.9.2 120 10/17/2019
19.9.1 131 10/15/2019
19.9.0 126 10/8/2019
19.8.1 175 9/9/2019
19.8.0 162 8/29/2019
19.7.0 160 8/20/2019
19.5.0 224 7/3/2019
19.1.0 402 2/12/2019
18.12.0 287 1/21/2019
18.9.0 306 10/5/2018
18.8.0 271 9/18/2018
18.7.0 334 8/6/2018
18.5.0 387 6/22/2018
18.4.0 435 5/16/2018
18.3.0 331 4/17/2018
18.2.0 391 3/12/2018
18.1.0 389 2/6/2018
17.10.0 385 12/27/2017