aspose.html.sdk.v140 19.6.0

dotnet add package aspose.html.sdk.v140 --version 19.6.0                
NuGet\Install-Package aspose.html.sdk.v140 -Version 19.6.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="aspose.html.sdk.v140" Version="19.6.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add aspose.html.sdk.v140 --version 19.6.0                
#r "nuget: aspose.html.sdk.v140, 19.6.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install aspose.html.sdk.v140 as a Cake Addin
#addin nuget:?package=aspose.html.sdk.v140&version=19.6.0

// Install aspose.html.sdk.v140 as a Cake Tool
#tool nuget:?package=aspose.html.sdk.v140&version=19.6.0                

Aspose HTML Cloud SDK C++

AsposeHtml - the C++ library for the Aspose.HTML Cloud API Reference

  • API version: 3.0
  • Package version: 19.6.0

Requirements

Installation

Load from git

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

Getting Started

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 free quota available. For more details, see Aspose Cloud Pricing.

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

    //Helper directory with data for test
    const utility::string_t testResult = _XPLATSTR("..\\testresult\\");

    //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
    ConversionApi *api = new ConversionApi(apiClient);

    //Parameters for conversion
    utility::string_t sourceUrl = _XPLATSTR("https://stallman.org/articles/anonymous-payments-thru-phones.html");
    boost::optional<int32_t> width = 800;
    boost::optional<int32_t> height = 1000;
    boost::optional<int32_t> leftMargin = 20;
    boost::optional<int32_t> rightMargin = 20;
    boost::optional<int32_t> topMargin = 20;
    boost::optional<int32_t> bottomMargin = 20;
    boost::optional<int32_t> resolution = 300;
    
    //Convert to png
	auto result = api->getConvertDocumentToImageByUrl(sourceUrl, _XPLATSTR("png"),
		width, height, leftMargin, rightMargin, topMargin, bottomMargin, resolution).get();

        
    //Save result to files
    std::ofstream saved_data(testresult + _XPLATSTR("ConvertResult.png"), std::ios::out | std::ios::binary);

    result.writeTo(saved_data);
    saved_data.close();
    
    delete api;
Product Compatible and additional computed target framework versions.
native native is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
19.6.0 2,938 10/23/2019 19.6.0 is deprecated because it is no longer maintained.

Release of Aspose HTML SDK for .CPP SDK (v.19.6)