Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…amples into 927524_ft

# Conflicts:
#	HTML to PDF/Blink/Convert-website-URL-to-PDF-document/.NET/Convert-website-URL-to-PDF-document/Program.cs
  • Loading branch information
sameerkhan001 committed Dec 13, 2024
2 parents c62e914 + c8e70e9 commit 8991f76
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@

//Initialize HTML to PDF converter.
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();
//Create blink converter settings
BlinkConverterSettings blinkConverterSettings = new BlinkConverterSettings();
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
{
//Set command line arugument to run without the sandbox.
//Set command line arguments to run without the sandbox.
blinkConverterSettings.CommandLineArguments.Add("--no-sandbox");
blinkConverterSettings.CommandLineArguments.Add("--disable-setuid-sandbox");
}
Expand All @@ -24,4 +25,4 @@
document.Save(fileStream);
}
//Close the document.
document.Close(true);
document.Close(true);

0 comments on commit 8991f76

Please sign in to comment.