Html | |
The HtmlToPdfProxyOptions type exposes the following members.
| Name | Description | |
|---|---|---|
| HtmlToPdfProxyOptions |
| Name | Description | |
|---|---|---|
| HostName | Gets or sets the host name (or IP address) of the proxy server. | |
| Password | Gets or sets the password used to authenticate with the proxy server, when required. | |
| PortNumber | Gets or sets the TCP port number the proxy server listens on. | |
| Type | Gets or sets the proxy type. Defaults to None, meaning no proxy is used. | |
| Username | Gets or sets the user name used to authenticate with the proxy server, when required. |
HtmlToPdf converter = new HtmlToPdf(); converter.Options.ProxyOptions.Type = NetworkProxyType.Http; converter.Options.ProxyOptions.HostName = "proxy.example.com"; converter.Options.ProxyOptions.PortNumber = 8080; PdfDocument doc = converter.ConvertUrl("https://www.google.com"); doc.Save("out.pdf"); doc.Close();