Proxy issue

//Set manual proxy settings
settings.ProxySettings.HostName = "127.0.0.1";
settings.ProxySettings.PortNumber = 8080;
settings.ProxySettings.Type = BlinkProxyType.HTTP;
//Assign Blink converter settings to HTML converter
htmlConverter.ConverterSettings = settings;

Even if i update port number to 8001 it is picking 8000 from some where else and whatever host name i am specifying it is not taking it and returning 403.

Please let us know why do we need Proxy details to convert local html string to 


1 Reply

AM Arumugam Muppidathi Syncfusion Team January 9, 2025 01:21 PM UTC

Hi Mahesh,


Thank you for reaching out to Syncfusion support.

 

Upon further investigation, we found that in some networks, direct access to the internet may be restricted or blocked for security reasons. A proxy server can serve as an intermediary, allowing you to route your requests through a gateway that has access to external resources.

 

If there are no restrictions in your network, you can directly convert an HTML string to a PDF document without enabling the proxy setting in BlinkConverterSettings.

 

By default, the Blink rendering engine uses the system's proxy settings for HTML to PDF conversion. If a proxy server is configured on the system, the rendering engine will automatically use these settings for the conversion. For more details, please refer to our documentation on performing HTML to PDF conversion with system proxy settings.
Converting HTML to PDF | System Proxy | Syncfusion

 

For more information on converting HTML String to PDF without proxy settings, please refer to the following documentation:
Converting HTML to PDF | Syncfusion

 

Please try the provided solution and let us know the result. If you continue to experience issues, we kindly request you to provide the sample, complete code snippet, Syncfusion package name and version, .NET version, input HTML document and environmental details with us.  This will be more helpful for us to analyze and provide you with a prompt solution.



Regards,

Arumugam M


Loader.
Up arrow icon