Enum WebKitProxyType
Type of proxy server
Namespace: Syncfusion.HtmlConverter
Assembly: Syncfusion.HtmlConverter.Base.dll
Syntax
public enum WebKitProxyType
Examples
//Initialize HTML converter
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit);
//Initialize WebKit converter settings
WebKitConverterSettings webKitSettings = new WebKitConverterSettings();
//Assign the WebKit path
webKitSettings.WebKitPath = @"/QtBinaries/";
//Set manual proxy with proxy server host and port number.
webKitSettings.ProxySettings.HostName = "127.0.0.1";
webKitSettings.ProxySettings.PortNumber = 8080;
//Set proxy server type
webKitSettings.ProxySettings.Type = WebKitProxyType.Http;
//Assign WebKit settings to HTML converter
htmlConverter.ConverterSettings = webKitSettings;
//Convert url to pdf
PdfDocument document = htmlConverter.Convert("https://www.google.com");
//Save and close the PDF document
document.Save("Output.pdf");
document.Close(true);
'Initialize HTML converter
Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit)
'Initialize WebKit converter settings
Dim webKitSettings As New WebKitConverterSettings()
'Assign the WebKit path
webKitSettings.WebKitPath = "/QtBinaries/"
'Set manual proxy with proxy server host and port number.
webKitSettings.ProxySettings.HostName = "127.0.0.1"
webKitSettings.ProxySettings.PortNumber = 8080
'Set proxy server type
webKitSettings.ProxySettings.Type = WebKitProxyType.Http
'Assign WebKit settings to HTML converter
htmlConverter.ConverterSettings = webKitSettings
'Convert url to pdf
Dim document As PdfDocument = htmlConverter.Convert("https://www.google.com")
'Save and close the PDF document
document.Save("Output.pdf")
document.Close(True)
Fields
Name | Description |
---|---|
Http | Http proxy type |
HttpCaching | Http caching proxy type |
None | No proxy type |
Socks5 | Socks5 proxy type |