Click or drag to resize
Pdf Library for .NET

NetworkProxyType Enumeration

The type of network proxy used when the converter retrieves the web page.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public enum NetworkProxyType
Members
Member nameValueDescription
Socks50 A SOCKS5 proxy server.
None1 No proxy is used; the page is retrieved directly.
Http2 A standard HTTP proxy server.
HttpCaching3 An HTTP proxy server that caches retrieved resources.
Example
HtmlToPdf converter = new HtmlToPdf();
converter.Options.ProxyOptions.Type = NetworkProxyType.Http;
converter.Options.ProxyOptions.HostName = "proxy.example.com";
converter.Options.ProxyOptions.PortNumber = 8080;
See Also