This sample shows how to convert a URL to PDF in C# or VB.NET console application.
The HTML to PDF C# Conversion section contains additional information.
The HTML to PDF API is an asynchronous-only one. Nonetheless, it is possible to use the API from a regular synchronous console application. And if you are using C# 7.1 or newer, you can have an async Main in your console application.
This sample code uses free Docotic.Pdf.HtmlToPdf add-on for Docotic.Pdf library.