HTML to PDF Conversion

Introduction

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

API Information

APITypeDescriptionSwagger Link
/html/{name}/convert/pdfGETConverts the HTML document (located on storage) to PDF and returns resulting file in response contentGetConvertDocumentToPdf
/html/{name}/convert/pdfPUTConverts the HTML document (located on storage) to PDF and uploads resulting file to storage.PutConvertDocumentToPdf
/html/convert/pdfGETConvert the HTML page (located in the Web) to PDF and returns resulting file in response contentGetConvertDocumentToPdfByUrl
/html/convert/pdfPOSTConverts the HTML document (in request content) to PDF and uploads resulting file to storage.PostConvertDocumentInRequestToPdf

cURL Example

Case 1: Demonstrate GET on /html/{name}/convert/pdf