Skip to content

Commit 8b4e6c6

Browse files
committed
968984_Removed the command line arguments in the BlinkConverterSettings.
1 parent aed0710 commit 8b4e6c6

File tree

38 files changed

+8
-226
lines changed

38 files changed

+8
-226
lines changed

HTML to PDF/Blink/Access-a-webpage-using-HTTP-GET/.NET/Access-a-webpage-using-HTTP-GET/Program.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,6 @@
66

77
//Initialize the HTML to PDF converter.
88
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();
9-
BlinkConverterSettings blinkConverterSettings = new BlinkConverterSettings();
10-
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
11-
{
12-
//Set command line arugument to run without the sandbox.
13-
blinkConverterSettings.CommandLineArguments.Add("--no-sandbox");
14-
blinkConverterSettings.CommandLineArguments.Add("--disable-setuid-sandbox");
15-
}
16-
//Assign Blink converter settings to HTML converter.
17-
htmlConverter.ConverterSettings = blinkConverterSettings;
189

1910
//Set the URL.
2011
string url = "https://www.example.com";

HTML to PDF/Blink/Access-a-webpage-using-HTTP-POST/.NET/Access-a-webpage-using-HTTP-POST/Program.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@
99

1010
//Initialize blink converter settings.
1111
BlinkConverterSettings settings = new BlinkConverterSettings();
12-
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
13-
{
14-
//Set command line arugument to run without the sandbox.
15-
settings.CommandLineArguments.Add("--no-sandbox");
16-
settings.CommandLineArguments.Add("--disable-setuid-sandbox");
17-
}
1812
//Add HTTP post parameters to HttpPostFields.
1913
settings.HttpPostFields.Add("firstName", "Andrew");
2014
settings.HttpPostFields.Add("lastName", "Fuller");

HTML to PDF/Blink/Accessible_PDF_In_HTML_to_PDF/.NET/Accessible PDF/Program.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();
77
//Initialize the BlinkConverterSettings.
88
BlinkConverterSettings settings = new BlinkConverterSettings();
9-
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
10-
{
11-
//Set command line arugument to run without the sandbox.
12-
settings.CommandLineArguments.Add("--no-sandbox");
13-
settings.CommandLineArguments.Add("--disable-setuid-sandbox");
14-
}
159
//Set true to enable the accessibility tags in PDF generation.
1610
settings.EnableAccessibilityTags = true;
1711
//Assign the BlinkConverterSettings to the ConverterSettings property of HtmlToPdfConverter.

HTML to PDF/Blink/Adjusting-the-HTML-content-size-in-PDF-document/.NET/Adjusting-the-HTML-content-size-in-PDF-document/Program.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@
1010

1111
//Create blink converter settings.
1212
BlinkConverterSettings blinkConverterSettings = new BlinkConverterSettings();
13-
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
14-
{
15-
//Set command line arugument to run without the sandbox.
16-
blinkConverterSettings.CommandLineArguments.Add("--no-sandbox");
17-
blinkConverterSettings.CommandLineArguments.Add("--disable-setuid-sandbox");
18-
}
1913
//Set Blink viewport size.
2014
blinkConverterSettings.ViewPortSize = new Size(800, 0);
2115

HTML to PDF/Blink/Convert-HTML-form-to-PDF-fillable-form/.NET/Convert-HTML-form-to-PDF-fillable-form/Program.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@
1010

1111
//Create blink converter settings.
1212
BlinkConverterSettings settings = new BlinkConverterSettings();
13-
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
14-
{
15-
//Set command line arugument to run without the sandbox.
16-
settings.CommandLineArguments.Add("--no-sandbox");
17-
settings.CommandLineArguments.Add("--disable-setuid-sandbox");
18-
}
1913
//Set enable form.
2014
settings.EnableForm = true;
2115

HTML to PDF/Blink/Convert-HTML-to-PDF-in-offline-mode/.NET/Convert-HTML-to-PDF-in-offline-mode/Program.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@
99

1010
//Initialize blink converter settings.
1111
BlinkConverterSettings blinkConverterSettings = new BlinkConverterSettings();
12-
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
13-
{
14-
//Set command line arugument to run without the sandbox.
15-
blinkConverterSettings.CommandLineArguments.Add("--no-sandbox");
16-
blinkConverterSettings.CommandLineArguments.Add("--disable-setuid-sandbox");
17-
}
1812

1913
//Enable offline mode.
2014
blinkConverterSettings.EnableOfflineMode = true;

HTML to PDF/Blink/Convert-form-authenticated-webpage-to-PDF-document/.NET/Convert-form-authenticated-webpage-to-PDF-document/Program.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@
1010

1111
//Initialize blink converter settings.
1212
BlinkConverterSettings blinkConverterSettings = new BlinkConverterSettings();
13-
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
14-
{
15-
//Set command line arugument to run without the sandbox.
16-
blinkConverterSettings.CommandLineArguments.Add("--no-sandbox");
17-
blinkConverterSettings.CommandLineArguments.Add("--disable-setuid-sandbox");
18-
}
1913
//Add cookies as name and value pair.
2014
blinkConverterSettings.Cookies.Add("CookieName1", "CookieValue1");
2115
blinkConverterSettings.Cookies.Add("CookieName2", "CookieValue2");

HTML to PDF/Blink/Convert-partial-webpage-to-PDF-document/.NET/Convert-partial-webpage-to-PDF-document/Program.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,7 @@
66

77
//Initialize the HTML to PDF converter.
88
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();
9-
BlinkConverterSettings blinkConverterSettings = new BlinkConverterSettings();
10-
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
11-
{
12-
//Set command line arugument to run without the sandbox.
13-
blinkConverterSettings.CommandLineArguments.Add("--no-sandbox");
14-
blinkConverterSettings.CommandLineArguments.Add("--disable-setuid-sandbox");
15-
}
16-
//Assign Blink converter settings to HTML converter.
17-
htmlConverter.ConverterSettings = blinkConverterSettings;
9+
1810
//Convert Partial webpage to PDF document.
1911
PdfDocument document = htmlConverter.ConvertPartialHtml(Path.GetFullPath(@"Data/Input.html"), "picture");
2012

HTML to PDF/Blink/Convert-the-HTML-string-to-PDF-document/.NET/Convert-the-HTML-string-to-PDF-document/Program.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,6 @@
66

77
//Initialize HTML to PDF converter.
88
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();
9-
BlinkConverterSettings blinkConverterSettings = new BlinkConverterSettings();
10-
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
11-
{
12-
//Set command line arugument to run without the sandbox.
13-
blinkConverterSettings.CommandLineArguments.Add("--no-sandbox");
14-
blinkConverterSettings.CommandLineArguments.Add("--disable-setuid-sandbox");
15-
}
16-
//Assign Blink converter settings to HTML converter.
17-
htmlConverter.ConverterSettings = blinkConverterSettings;
189
//HTML string and Base URL.
1910
string htmlText = "<html><body><img src=\"syncfusion_logo.png\" alt=\"Syncfusion_logo\" width=\"200\" height=\"70\"><p> Hello World</p></body></html>";
2011
string baseUrl = Path.GetFullPath(@"Data/Resources/");

HTML to PDF/Blink/Convert-the-HTML-string-to-image-file/.NET/Convert-the-HTML-string-to-image-file/Program.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@
66

77
//Initialize HTML to PDF converter.
88
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();
9-
BlinkConverterSettings settings = new BlinkConverterSettings();
10-
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
11-
{
12-
settings.CommandLineArguments.Add("--no-sandbox");
13-
settings.CommandLineArguments.Add("--disable-setuid-sandbox");
14-
}
15-
//Assign Blink converter settings to HTML converter.
16-
htmlConverter.ConverterSettings = settings;
179
//HTML string and Base URL.
1810
string htmlText = "<html><body><img src=\"syncfusion_logo.png\" alt=\"Syncfusion_logo\" width=\"200\" height=\"70\"><p> Hello World</p></body></html>";
1911
string baseUrl = Path.GetFullPath(@"Data/Resources/");

0 commit comments

Comments
 (0)