Click or drag to resize
Pdf Library for .NET

HtmlToPdfProxyOptions Class

Specifies the network proxy the converter uses to reach the web page being converted. Reached through ProxyOptions; a proxy is used only when Type is set to a value other than None.
Inheritance Hierarchy
SystemObject
  SelectPdf.UniversalHtmlToPdfProxyOptions

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public class HtmlToPdfProxyOptions

The HtmlToPdfProxyOptions type exposes the following members.

Constructors
 NameDescription
Public methodHtmlToPdfProxyOptions 
Top
Properties
 NameDescription
Public propertyHostName Gets or sets the host name (or IP address) of the proxy server.
Public propertyPassword Gets or sets the password used to authenticate with the proxy server, when required.
Public propertyPortNumber Gets or sets the TCP port number the proxy server listens on.
Public propertyType Gets or sets the proxy type. Defaults to None, meaning no proxy is used.
Public propertyUsername Gets or sets the user name used to authenticate with the proxy server, when required.
Top
Example
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();
See Also