CloudmersiveConvertClient.ConvertWebHtmlToPdfAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Convert HTML string to PDF
public virtual System.Threading.Tasks.Task<byte[]> ConvertWebHtmlToPdfAsync(Azure.Connectors.Sdk.CloudmersiveConvert.Models.HtmlToPdfRequest input, System.Threading.CancellationToken cancellationToken = default);
abstract member ConvertWebHtmlToPdfAsync : Azure.Connectors.Sdk.CloudmersiveConvert.Models.HtmlToPdfRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<byte[]>
override this.ConvertWebHtmlToPdfAsync : Azure.Connectors.Sdk.CloudmersiveConvert.Models.HtmlToPdfRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<byte[]>
Public Overridable Function ConvertWebHtmlToPdfAsync (input As HtmlToPdfRequest, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Byte())
Parameters
- input
- HtmlToPdfRequest
The request body.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
The Convert HTML string to PDF response.
Remarks
Fully renders a website and returns a PDF of the HTML. Javascript, HTML5, CSS and other advanced features are all supported.