This sample shows how to convert a password-protected web page to PDF in C# or VB.NET application.
The Provide password for protected pages section contains additional information.
You can use the authentication options inside the HtmlConversionOptions
to specify the user name and password for the URL. Then pass the options to the CreatePdfAsync
method.
This sample code uses free Docotic.Pdf.HtmlToPdf add-on for Docotic.Pdf library.