Process & Transform HTML Files Using Python SDK

Convert HTML files to images, PDF & XPS with added benefits of Image Extraction, Content Translation & OCR.

  Start Free Trial
Aspose.HTML Cloud SDK for Python

Aspose.HTMLCloud SDK for Python

 
 

Aspose.HTML Cloud SDK for Python is developed on top of Cloud REST API and enables you to perform a wide range of file processing operations including creation, manipulation, conversion, and rendering of HTML files in the cloud.

Conversion to Different Formats

This HTML Cloud SDK supports document conversion to fixed layout document formats such as PDF, XPS or to raster image formats including JPEG, PNG, BMP or TIFF. You may even choose to render a complete file or select a few pages and perform the conversion.

Aspose.HTML Cloud SDK for Python ensures that the converted files are produced according to the target file's standards and specifications so that the resultant file can easily be loaded within their native applications.

 

Advanced HTML Processing Features

 

 

Create HTML pages from scratch

 

Load HTML from an existing file

 

Get HTML fragments using XPath queries

 

Render HTML to raster Images

 

Convert HTML to PDF or XPS & Convert HTML page to MHTML via URL

 

Translate HTML text content & Extract HTML Images

 

Download HTML page and its linked resources as a ZIP archive

 

API explorer based on the Swagger collection

 

APIs are secured and require authentication

Object level control

Aspose.HTML Cloud SDK for Python enables you to navigate through the HTML document either by elements, document or XPath selector queries, insert, remove or replace HTML nodes on the go.

Extract Images from HTML

Aspose.HTML Cloud SDK for Python enables you to Extract all images from the HTML document. The resultant images will be returned in the response content stream as a zipped package of image files.

HTML to XPS Conversion

Aspose.HTML Cloud SDK for Python provides the capabilities to create or load HTML files, and render the output in PDF or XPS.

The conversion process is highly customizable and depends upon the values of URL parameters i.e. the sourceUrl and outPath. If the sourceUrl parameter is specified, it can contain absolute web URL, which means an HTML page from the web, or if its a relative URL, it indicates that the cloud-stored HTML document. Else the source document is passed as the request content stream. If outPath parameter is specified, the resulting document will be saved in the cloud storage by specified path and name and if its not specified, the result will be returned as the response content stream.

OCR Capabilities

Apart from HTML files manipulation, the SDK also provides a unique feature of recognizing Text content from an image and create HTML from recognized content. The SDK also offers flexibility to recognize Text from the Image file, import it to HTML format and then Translate to Specified Language, so you can have the output in your desired language. Its one of the salient features of our SDK and can be useful in various business domains. If outPath parameter is specified, the resulting document will be saved in the cloud storage by the specified path and name and if it's not specified, the result will be returned as the response content stream.

HTML to Image conversion

Aspose.HTML Cloud SDK for Python offers high fidelity rendering engine at its core which can convert HTML pages to most commonly used raster image formats including TIFF, BMP, PNG & JPEG without requiring any additional software or tool.

Translate HTML Pages

Aspose.HTML Cloud SDK for Python also provides the capabilities to translate the text content of HTML document to other languages simultaneously (currently English to German, French & Russian translation is supported).

 

Support and Learning Resources