Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Does the HTML to PDF converter support authentication when used in ASP.NET application?

0
Posted

Does the HTML to PDF converter support authentication when used in ASP.NET application?

0

The converter offers support for server authentication, for example any type of IIS authentication (Integrated Windows Authentication, Basic Authentication, etc). To enable server authentication you have to set the PdfConverter.AuthenticationOptions property with a username and password. The server authentication is usually necessary when accessing Intranet resources. Please do not confound the server authentication with the authentication implemented at the level of your application (usually implemented as a login page in your application ). If you need to deal with application level authentication please read below. Another option to consider when trying to resolve authentication issues (including authentication implemented at application level) is to get the HTML code of the web page using the Server.Execute(Url) method from ASP.NET and then convert that string to PDF as we do in the InvoicesDemo sample for ASP.NET. The Server.Execute() method is executed in your application session

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123