Embedding Bitmaps and Images

Most ASP.NET applications support network authentication, which is more reliable than HTML

form posting. You can use login credentials for IronPDF's embedded Chrome browser to login to an intranet, extranet, or website impersonating a user. This allows a unique ability to render webpages as PDFs, even on secure intranets, extranets, and websites.

In this example, we demonstrate how to use system logins to render secure files or web pages into PDF files.

IronPDF supports TLS network authentication (username and password), which is extremely secure and supported by .NET web apps.

There are a few ways to do this.

  • You can use System.Net.WebClient or HttpClient to download the HTML and any assets. This fully supports headers, logins, and everything else you may need. IronPDF can then render your HTML into a PDF.
  • You can also log in using Network Authentication, which is more reliable than HTML form posting.
  • You may log in using an HTML form. This may also be achieved using the HttpLoginCredentials class, as in the previous example. Instead of specifying a username and password, you may send CustomPostVariables, or LoginFormPostVariables instead.

For more examples about IronPDF and Authentication Forms, please see: Render PDFs Behind System Logins article.