CloudmersiveConvertClient.ConvertDocumentHtmlToPdfAsync 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 document file to PDF Document
public virtual System.Threading.Tasks.Task<byte[]> ConvertDocumentHtmlToPdfAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member ConvertDocumentHtmlToPdfAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<byte[]>
override this.ConvertDocumentHtmlToPdfAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<byte[]>
Public Overridable Function ConvertDocumentHtmlToPdfAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Byte())
Parameters
- cancellationToken
- CancellationToken
Cancellation token.
Returns
The Convert HTML document file to PDF Document response.
Remarks
Convert standard HTML, with full support for CSS, JavaScript, Images, and other complex behavior to PDF. To use external files such as images, use an absolute URL to the file.