Skip to content

Commit 29c0b75

Browse files
Revert the command line changes for linux platforms in README.md
1 parent 99d7406 commit 29c0b75

File tree

1 file changed

+1
-8
lines changed
  • HTML to PDF/Blink/Convert-website-URL-to-PDF-document/.NET/Convert-website-URL-to-PDF-document

1 file changed

+1
-8
lines changed

HTML to PDF/Blink/Convert-website-URL-to-PDF-document/.NET/Convert-website-URL-to-PDF-document/README.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Step 3: **Include necessary namespaces**: Add the following namespaces in your `
1515
```csharp
1616
using Syncfusion.HtmlConverter;
1717
using Syncfusion.Pdf;
18-
using System.Runtime.InteropServices;
1918
```
2019

2120
Step 4: **Convert HTML to PDF**: Implement the following code in `Program.cs` to convert a website URL to a PDF file:
@@ -25,12 +24,6 @@ Step 4: **Convert HTML to PDF**: Implement the following code in `Program.cs` to
2524
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();
2625
//Create blink converter settings
2726
BlinkConverterSettings blinkConverterSettings = new BlinkConverterSettings();
28-
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
29-
{
30-
//Set command line arguments to run without the sandbox.
31-
blinkConverterSettings.CommandLineArguments.Add("--no-sandbox");
32-
blinkConverterSettings.CommandLineArguments.Add("--disable-setuid-sandbox");
33-
}
3427
//Assign Blink converter settings to HTML converter.
3528
htmlConverter.ConverterSettings = blinkConverterSettings;
3629
//Convert URL to PDF document.
@@ -47,4 +40,4 @@ Step 4: **Convert HTML to PDF**: Implement the following code in `Program.cs` to
4740

4841
You can download a complete working sample from the [GitHub repository](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/HTML%20to%20PDF/Blink/Convert-website-URL-to-PDF-document).
4942

50-
More information about the HTML to PDF conversion can be found in this [documentation](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features) section.
43+
More information about the HTML to PDF conversion can be found in this [documentation](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features) section.

0 commit comments

Comments
 (0)