Aspose.HTML Cloud – Cloud SDKs
Welcome to the Aspose.HTML Cloud documentation section
Aspose.HTML Cloud is a REST API designed explicitly for document generation, manipulation and conversion in the cloud. The REST API is platform-independent and integrates with other cloud services. It provides access to files and folders that are stored in the user associated Aspose cloud storage or any additional cloud storage of your choice. Aspose.HTML Cloud provides the ability to use its functionality both by the REST API directly or by the set of wrappers implemented as SDKs on the various programming languages. The main highlights of Aspose.HTML Cloud REST API v4.0 are the conversion feature and the cloud storage access functionality.
The REST API supports a set of converting between formats. You can take a source document from cloud storage or a local file system. The following conversions are available:
- Convert HTML to different formats, including PDF, XPS, DOC, DOCX, JPEG, PNG, TIFF, BMP, GIF, Markdown, and MHTML.
- Convert XHTML to different formats, including PDF, XPS, DOC, DOCX, JPEG, PNG, TIFF, BMP, GIF, Markdown, and MHTML.
- Convert EPUB to different formats, including PDF, XPS, DOC, DOCX, JPEG, PNG, TIFF, BMP, and GIF.
- Convert MHTML to different formats, including PDF, XPS, DOC, DOCX, JPEG, PNG, TIFF, BMP, GIF, and HTML.
- Convert Markdown to different formats, including PDF, XPS, DOC, DOCX, JPEG, PNG, TIFF, BMP, and GIF.
- Convert SVG to different formats, including PDF, XPS, JPEG, PNG, TIFF, BMP, and GIF.
- Vectorize Image converts raster images such as PNG, JPEG, BMP, TIFF, and GIF to SVG vector graphics.
To obtain information about converting between formats, please read the Conversion API section.
SDK example of HTML to PDF conversion
Convert an HTML document fast and easy with our intuitive API just with a few lines of code. Let’s review the common usage scenario when HTML is stored at a local drive, and you want to convert it to PDF format and save to the storage.
1// Initialize SDK API
2var api = new HtmlApi("CLIENT_ID", "CLIENT_SECRET").ConvertApi;
3
4// Convert HTML to PDF
5var result = await api.ConvertAsync("test.html", "test.pdf");
Also, our REST API provides capabilities to manipulate files that are stored in the cloud storage associated with user applications, such as:
- Upload and download files to/from the cloud storage.
- Check if a file or folder exists in the storage.
- Get a list of folders and files in the specified storage folder.
- Check if named storage exists and is accessible to the user and get the storage total and used disc space.