Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions File-Formats/PDF/Convert-HTML-To-PDF/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ You can set the runtimes folder path explicitly in BlinkPath property in BlinkCo
<br/><br/>
Ex path: <i>C:\HtmlConversion\HTMl-to-PDF\HTMl-to-PDF\bin\Debug\net7.0\runtimes\win-x64\native\</i>
<br/><br/>
{% highlight html %}
{% highlight c# tabtitle="C# [Cross-platform]" %}

//Initialize the HTML to PDF converter.
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();
Expand Down Expand Up @@ -137,7 +137,7 @@ Also, please add the following command line arguments in our converter setting.
<table>
<tr>
<td>
{% highlight c# tabtitle="C#" %}
{% highlight %}

//Set command line arguments to run without sandbox.
blinkConverterSettings.CommandLineArguments.Add("--no-sandbox");
Expand Down Expand Up @@ -247,7 +247,7 @@ blinkConverterSettings.CommandLineArguments.Add("--disable-setuid-sandbox");
</th>
<td>To overcome the exception, you can add read, write, and execute permissions for the temporary folder. Refer to the following code sample to set the temp folder.
<br><br/>
{% highlight c# tabtitle="C#" %}
{% highlight %}

BlinkConverterSettings settings = new BlinkConverterSettings();
settings.TempPath = "D://MyProject//bin";
Expand Down Expand Up @@ -330,7 +330,7 @@ Check the HTML file or URL is rendered properly in Chrome browser's print previe
<br><br/>
<img src="htmlconversion_images/Troubleshooting_webpage_exception_Linux.png" alt="ExcludeAssets">
<br><br/>
{% highlight c# tabtitle="C#" %}
{% highlight %}

COPY . /app
WORKDIR /app
Expand Down Expand Up @@ -362,7 +362,7 @@ RUN chmod +x /app/runtimes/linux/native/chrome && \
</th>
<td>To overcome this issue, add suitable delay for the conversion using the <a href="https://help.syncfusion.com/cr/file-formats/Syncfusion.HtmlConverter.BlinkConverterSettings.html#Syncfusion_HtmlConverter_BlinkConverterSettings_AdditionalDelay">AdditionalDelay</a> property of the HTMLConverter.
<br><br/>
{% highlight c# tabtitle="C#" %}
{% highlight %}

BlinkConverterSettings settings = new BlinkConverterSettings();
settings.AdditionalDelay = 4000;
Expand Down Expand Up @@ -431,7 +431,7 @@ Refer to this <a href="https://www.syncfusion.com/kb/10258/how-to-convert-html-t
</th>
<td>You can able to bypass the invalid SSL certificate errors using the command line arguments property of Blink converter settings.
<br><br/>
{% highlight c# tabtitle="C#" %}
{% highlight %}

BlinkConverterSettings settings = new BlinkConverterSettings();
settings.CommandLineArguments.Add("--ignore-certificate-errors");
Expand Down Expand Up @@ -461,7 +461,7 @@ settings.CommandLineArguments.Add("--ignore-certificate-errors");
</th>
<td>We can resolve this permission related failure in the Blink rendering engine using below command line arguments in our converter settings.
<br><br/>
{% highlight c# tabtitle="C#" %}
{% highlight %}

//Set command line arguments to run without sandbox.
blinkConverterSettings.CommandLineArguments.Add("--no-sandbox");
Expand Down Expand Up @@ -591,7 +591,7 @@ To resolve this issue, we can install the chromium using the docker file and set
Docker File:<br><br>
{% tabs %}

{% highlight c# tabtitle="C#" %}
{% highlight %}

FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base

Expand All @@ -617,7 +617,7 @@ Docker File:<br><br>

Code snippet:

{% highlight c# tabtitle="C#" %}
{% highlight %}

BlinkConverterSettings settings = new BlinkConverterSettings();

Expand Down Expand Up @@ -657,7 +657,7 @@ To resolve this issue, we can add inline styles in element. However, we have att

{% tabs %}

{% highlight c# tabtitle="C#" %}
{% highlight c# tabtitle="C# [Cross-platform]" %}

HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();
//Initialize blink converter settings.
Expand Down