diff --git a/ChromiumHtmlToPdfConsole/Options.cs b/ChromiumHtmlToPdfConsole/Options.cs
index c472d51..ef675bd 100644
--- a/ChromiumHtmlToPdfConsole/Options.cs
+++ b/ChromiumHtmlToPdfConsole/Options.cs
@@ -431,5 +431,23 @@ public class Options
///
[Option("enable-chromium-logging", Required = false, HelpText = "Enables Chromium logging; The output will be saved to the file chrome_debug.log in Chrome's user data directory. Logs are overwritten each time you restart Chromium")]
public bool EnableChromiumLogging { get; set; }
+
+ ///
+ /// Passes --disable-gpu to Chromium. This should be useful on common server hardware.
+ ///
+ [Option("disable-gpu", Required = false, HelpText = "Disables GPU hardware acceleration.")]
+ public bool DisableGpu { get; set; }
+
+ ///
+ /// Passes --ignore-certificate-errors to Chromium. Useful when generating from internal web server.
+ ///
+ [Option("ignore-certificate-errors", Required = false, HelpText = "Ignores certificate-related errors.")]
+ public bool IgnoreCertificateErrors { get; set; }
+
+ ///
+ /// Passes --disable-crash-reporter and --no-crashpad to Chromium.
+ ///
+ [Option("disable-crash-reporter", Required = false, HelpText = "Passes --disable-crash-reporter and --no-crashpad to Chromium.")]
+ public bool DisableCrashReporter { get; set; }
#endregion
}
diff --git a/ChromiumHtmlToPdfConsole/Program.cs b/ChromiumHtmlToPdfConsole/Program.cs
index e5f0735..283ab6e 100644
--- a/ChromiumHtmlToPdfConsole/Program.cs
+++ b/ChromiumHtmlToPdfConsole/Program.cs
@@ -329,6 +329,18 @@ private static void SetConverterSettings(Converter converter, Options options)
if (options.EnableChromiumLogging)
converter.EnableChromiumLogging = true;
+
+ if (options.DisableGpu)
+ converter.AddChromiumArgument("--disable-gpu");
+
+ if (options.IgnoreCertificateErrors)
+ converter.AddChromiumArgument("--ignore-certificate-errors");
+
+ if (options.DisableCrashReporter)
+ {
+ converter.AddChromiumArgument("--disable-crash-reporter");
+ converter.AddChromiumArgument("--no-crashpad");
+ }
}
#endregion