title: With C# use Chrome to covert HTML to PDF
body: <p>I think I'm doing something wrong or this isn't possible.  I am able to run from the command prompt and create pdf fine using the paths in the code below.  For more info the argument string when I use the command line looks like: 
  chrome --headless --print-to-pdf="c:\Users\pwtph82\desktop\myreport\myreport.pdf" <a href="https://google.com" rel="nofollow noreferrer">https://google.com</a></p>
  
  <p>Thanks for any help in advance.</p>
  
  <pre><code>     System.Diagnostics.Process process = new System.Diagnostics.Process();
          process.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
          process.StartInfo.FileName = @"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe";
  
          string arguments = @"chrome --headless --print-to-pdf=""c:\\Users\pwtph82\desktop\myreport\myReport.pdf"" https://google.com";
          process.StartInfo.Arguments = "/C " + arguments;
          process.Start();
  </code></pre>