title: How to get username and password of windows authentication from code
body: <p>I need to pass WINDOWS AUTHENTICATION details of logged in user to the pdf converter to make it work.
  I've tried this</p>
  
  <pre><code>PdfConverter.AuthenticationOptions.Username = CredentialCache.DefaultNetworkCredentials.UserName;
  PdfConverter.AuthenticationOptions.Password = CredentialCache.DefaultNetworkCredentials.Password;
  </code></pre>
  
  <p>But this doesn't help. Converter is working locally, but returning 404 errors in the server where windows authentication is enabled.</p>
  
  <p>How can I get credentials with the code?</p>