title: Converting Html to Pdf with SelectPdf ArgumentNullException
body: <p>iam new here and hope someone can help me out.</p>
  <p>iam trying to convert a html string to a pdf version in net5. We had it running in net core 2.2 without any problems. Now we are trying to migrate everything to net5. Well the only part which is not working  anymore is converting html string to pdf document.</p>
  <p>We are using following nuget package: Select.HtmlToPdf.NetCore
  As soon we try the convert the html string with &quot;ConvertHtmlString&quot; we get following Exception.</p>
  <p><strong>System.ArgumentNullException: 'Value cannot be null. Arg_ParamName_Name'</strong></p>
  <p>here is a simple snippet to repdoruce the problem:</p>
  <pre><code>var htmlString = &quot;&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Test me out!&lt;/body&gt;&lt;/html&gt;&quot;;
  var converter = new HtmlToPdf();
  converter.Options.PdfPageSize = PdfPageSize.Letter;
  converter.Options.AutoFitWidth = HtmlToPdfPageFitMode.AutoFit;
  converter.Options.AutoFitHeight = HtmlToPdfPageFitMode.AutoFit;
  converter.Options.PdfPageOrientation = PdfPageOrientation.Landscape;
  SelectPdf.PdfDocument doc = converter.ConvertHtmlString(htmlString);
  doc.Save(&quot;C:\\Temp\\test.pdf&quot;);
  doc.Close();
  </code></pre>
  <p>Thanks.</p>
  <p>Regards Maik</p>