This sample shows how to convert a URL to PDF in C# or VB.NET Windows Forms application.
The HTML to PDF C# Conversion section contains additional information.
The HTML to PDF API is an asynchronous-only one. You can use the API from an async event handler or another async method.
This sample code uses free Docotic.Pdf.HtmlToPdf add-on for Docotic.Pdf library.