Skip to content

Commit 5ca7f5b

Browse files
committed
Merge branch 'hotfix/hotfix-v31.1.17' of https://github.com/syncfusion-content/document-processing-docs into 982271-Update-Hyperlink-DocIO-Hotfix
2 parents 876218d + 138bb45 commit 5ca7f5b

14 files changed

+3289
-1493
lines changed

Document-Processing/PDF/Conversions/HTML-To-PDF/NET/troubleshooting.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,58 @@ settings.CommandLineArguments.Add("--ignore-certificate-errors");
543543
</tr>
544544
</table>
545545

546+
## Security Alert - Bundled chrome.exe in HTML-to-PDF Conversion
547+
548+
<table>
549+
<th style="font-size:14px" width="100px">Issue
550+
</th>
551+
<th style="font-size:14px">Security alerts are triggered when the Syncfusion HTML-to-PDF converter uses a bundled `chrome.exe` executable to render HTML content in headless mode during PDF generation.
552+
</th>
553+
554+
<tr>
555+
<th style="font-size:14px" width="100px">Reason
556+
</th>
557+
<td>The HTML-to-PDF conversion relies on Chromium's Blink rendering engine:<br>
558+
559+
1.The NuGet package includes Blink binaries (`chrome.exe`) under `runtimes/win-x64/native`<br
560+
2.This bundled Chrome instance launches in headless mode to render web content<br>
561+
3.Security systems flag the execution of embedded binaries as potential risks<br>
562+
</td>
563+
</tr>
564+
565+
<tr>
566+
<th style="font-size:14px" width="100px">Solution
567+
</th>
568+
<td>Use system-installed Chromium instead of bundled binaries:
569+
<br><br/>
570+
Step 1: Configure Blink Path
571+
{% tabs %}
572+
{% highlight C# tabtitle="C#" %}
573+
574+
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();
575+
BlinkConverterSettings settings = new BlinkConverterSettings();
576+
577+
// Point to system-installed Chrome.
578+
settings.BlinkPath = @"C:\Program Files\Google\Chrome\Application";
579+
580+
//Convert HTML to PDF.
581+
htmlConverter.ConverterSettings = settings;
582+
PdfDocument document = htmlConverter.Convert("https://example.com");
583+
584+
//Save and close the document.
585+
document.Save("Output.pdf");
586+
document.Close(true);
587+
588+
{% endhighlight %}
589+
{% endtabs %}
590+
591+
Step 2: Verify Installation <br>
592+
Ensure Chrome exists at the specified path (standard locations): `C:\Program Files\Google\Chrome\Application`
593+
594+
</td>
595+
</tr>
596+
</table>
597+
546598
## Conversion failure in windows server 2012 R2
547599

548600
<table>

0 commit comments

Comments
 (0)