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.

Aspose.HTML Cloud SDK for Swift to Process HTML Files

AsposeHtmlCloudis available through CocoaPods . To install it, simply add the following line to your Podfile:

>
>


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

Aspose.HTML Cloud SDK for Swift is built to assist Swift programmers in creating cloud-based HTML processing applications that can fetch HTML documents from cloud storage and manipulate them from within your Swift applications without installing any third-party software. Currently, the Cloud SDK for Swift offers a number of key features:

Convert HTML, MHTML, XHTML, EPUB, Markdown, and SVG

  • HTML & XHTML -> PDF, XPS, DOCX, MD, MHTML, JPEG, BMP, PNG, TIFF, GIF
  • EPUB -> PDF, XPS, DOCX, JPEG, BMP, PNG, TIFF, GIF
  • MD -> PDF, XPS, DOCX, HTML, JPEG, BMP, PNG, TIFF, GIF
  • MHTML -> PDF, XPS, DOCX, JPEG, BMP, PNG, TIFF, GIF
  • SVG -> PDF, XPS, JPEG, BMP, PNG, TIFF, GIF

Features: Custom page size, margins, orientation, resolution, and cloud/local/URL input support.

Image Vectorization

  • Convert raster images like JPEG, PNG, TIFF, BMP, GIF to SVG scalable vector graphics.
  • Create high-quality vector images even from low-resolution sources.
  • Adjust vectorization parameters such as error threshold, color limits, and line thickness to achieve precise results.
  • Process input from local files, URLs, or cloud storage.

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 Other: XML

Convert HTML to PDF

Convert HTML documents into high-quality PDF format effortlessly using Aspose.HTML Cloud SDK for Swift.

import Alamofire
import Foundation
import XCTest
import AsposeHtmlCloud

static let fm = FileManager.default
let resourceDir = fm.homeDirectoryForCurrentUser.appendingPathComponent("Documents/Aspose.HTML.Cloud.SDK.Swift/Tests/AsposeHtmlCloudTests/Resources")
let resultDir = fm.homeDirectoryForCurrentUser.appendingPathComponent("Documents/Aspose.HTML.Cloud.SDK.Swift/Tests/AsposeHtmlCloudTests/TestResult")

func url(forResource fileName: String) -> URL {
	return resourceDir.appendingPathComponent(fileName)
}

func fileExist(name: String) -> Bool {
	return FileManager.default.fileExists(atPath: name)
}

ClientAPI.setConfig(
	basePath: "https://api.aspose.cloud/v4.0",
	authPath: "https://api.aspose.cloud/connect/token",
	apiKey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
	appSID: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
	debugging: true
)

let fileName = "test.html"
let format = "pdf"
let src = url(forResource: fileName).absoluteString

let expectation = self.expectation(description: "testConvert to \(format)")
let dst = resultDir.appendingPathComponent("Output.\(format)").absoluteString
HtmlAPI.convertLocalToLocal(src: src, dst: dst, options: nil) { (data, error) in

	guard error == nil else {
		XCTFail("Error convert html to \(format)). Error=\(error!.localizedDescription)")
		return
	}
	let resultPath = data!.file!
	XCTAssertTrue(fileExist(name: resultPath))
	expectation.fulfill()
}
self.waitForExpectations(timeout: 100.0, handler: nil)

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

 English