Class AuthenticationOptions
- Namespace
- BitMiracle.Docotic.Pdf.HtmlToPdf
- Assembly
- BitMiracle.Docotic.Pdf.HtmlToPdf.dll
Options for the optional HTTP authentication part of an HTML to PDF conversion.
public class AuthenticationOptions
- Inheritance
-
AuthenticationOptions
- Inherited Members
Remarks
Use these options to convert HTML pages protected by a username/password pair. Read more in the Password-protected HTML to PDF conversion section of the Convert HTML to PDF article.
For an overview of the HTML‑to‑PDF features provided by Docotic.Pdf with the HtmlToPdf add‑on, see the HTML to PDF for .NET page.
Constructors
- AuthenticationOptions()
Initializes a new instance of the AuthenticationOptions class.
Properties
- Password
Gets the password to use for the HTTP authentication.
- Username
Gets the user name to use for the HTTP authentication.
Methods
- SetAuthenticationNotNeeded()
Discards any existing credentials so that conversion won't try to authenticate before loading an HTML page.
- SetCredentials(string, string)
Sets the user name and password for HTTP authentication.