Browse our Products

If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.

Download Aspose.HTML Cloud C++ SDK to Process HTML Files

Aspose HTML Cloud SDK for C++ is a cross-platform SDK that wraps the RESTful APIs so you could speed up HTML programming and conversion from your own applications.

Open NuGet package manager, search for Aspose.Html-Cloud.Cpp and install. You may also use the following command from the Package Manager Console.

PM>

HTML Rendering & Conversion C++ Cloud REST API

Version Nuget GitHub

Product Page | Documentation | Demos | Swagger UI | Examples | Blog | Search | Free Support | Free Trial

Why Download Aspose.HTML Cloud SDK for C++?

This cloud SDK assists to develop cloud-based HTML page rendering, processing, and conversion apps in C++ language via REST API.

Cloud HTML Processing Features

Possible Conversions:

  • HTML → PDF, XPS, DOCX, MD, MHTML, JPEG, BMP, PNG, TIFF, GIF
  • EPUB → PDF, XPS, DOCX, JPEG, BMP, PNG, TIFF, GIF
  • MD → PDF, XPS, DOCX, HTML, MHTML, JPEG, BMP, PNG, TIFF, GIF
  • MHTML → PDF, XPS, DOCX, JPEG, BMP, PNG, TIFF, GIF
  • SVG → PDF, XPS, JPEG, BMP, PNG, TIFF, GIF
  • Process input from local files, URLs, or cloud storage.

Image Vectorization

  • Convert raster images to SVG vector graphics: JPEG, BMP, PNG, TIFF, GIF → SVG.
  • Create high-quality vector images from low-resolution sources.
  • Adjust vectorization settings for precise results.

Read & Write HTML Formats

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

Save HTML As

Microsoft Word: DOCX
Fixed Layout: PDF, XPS
Images: JPEG, PNG, BMP, TIFF, GIF
Web Formats MHTML, Markdown

Read Formats

eBook: EPUB

Installation of Aspose.HTML Cloud SDK for C++

To use Aspose HTML for Cloud SDK you need to register an account with Aspose Cloud and lookup/create App Key and SID at Cloud Dashboard. There is a free quota available. For more details, see Aspose Cloud Pricing.

Install from the command line

NuGet\Install-Package aspose.html.cloud.v143 -Version 22.12.1

Load from git

git clone https://github.com/aspose-html-cloud/aspose-html-cloud-cpp.git
cd aspose-html-cloud-cpp

Convert HTML to PDF Using Aspose.HTML Cloud SDK for C++

This example shows how to use the Aspose.HTML Cloud SDK for C++ to convert HTML to PDF:

// Get current directory
std::string cur_dir(argv[0]);
int pos = cur_dir.find_last_of("/\\");
cur_dir = cur_dir.substr(0, pos + 1); // Include the last slash
std::wstring w_cur_dir(cur_dir.begin(), cur_dir.end());

const utility::string_t clientId = L"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
const utility::string_t clientSecret = L"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
const utility::string_t basePath = L"https://api.aspose.cloud/v4.0";
const utility::string_t authPath = L"https://api.aspose.cloud/connect/token";

// Create configuration for authorization
std::shared_ptr<ApiConfiguration> apiConfig(new ApiConfiguration(clientId, clientSecret, basePath, authPath));

// Create client from configuration
std::shared_ptr<ApiClient> apiClient(new ApiClient(apiConfig));

// Create ConversionApi
std::shared_ptr<ConversionApi> api = std::make_shared<ConversionApi>(apiClient);

// File name for conversion
utility::string_t src = w_cur_dir + L"test.html";
utility::string_t dst = w_cur_dir + L"result.pdf";

//Conversion
auto result = api->convertLocalToLocal(src, dst);

// Check the result file
auto re = result->getFile();
std::ifstream f(re.c_str());
if(!f.good())
{
    throw std::runtime_error("Conversion failed");
}

Product Page | Documentation | Demos | Swagger UI | Examples | Blog | Search | Free Support | Free Trial


 English