HTML to XPS Conversion

Introduction

Aspose.HTML Cloud has provided the simplest API to convert an HTML page to the fixed-layout document format XPS. You can convert the HTML document to XPS either from the storage by its name or from the web by its URL.

API Information

API Type Description Swagger Link
/html/{name}/convert/xps GET Converts the HTML document (located on storage) to XPS and returns resulting file in response content GetConvertDocumentToXps
/html/{name}/convert/xps PUT Converts the HTML document (located on storage) to XPS and uploads resulting file to storage PutConvertDocumentToXps
/html/convert/xps GET Converts the HTML page (located in the Web) to XPS and returns resulting file in response content GetConvertDocumentToXpsByUrl
/html/convert/xps POST Converts the HTML document (in request content) to XPS and uploads resulting file to storage PostConvertDocumentInRequestToXps

cURL Example

Case 1: Converts the HTML document (located on storage) to XPS and returns resulting file in response content: