title: Powershell Convert html file to pdf using itext.html2pdf
body: <p>How to convert html to pdf file in Powershell using itext.html2pdf?</p>
  
  <p>I just want to take my input.html file and get an output.pdf file</p>
  
  <p>I am using iText 7 pdfHTML vewrsion 2.1.3</p>
  
  <p>Here is a C# code in the itext website, but how to convert it to Powershell?.</p>
  
  <pre><code>static void Main(string[] args)
  {
   using (FileStream htmlSource = File.Open("input.html", FileMode.Open))
   using (FileStream pdfDest = File.Open("output.pdf", FileMode.OpenOrCreate))
   {
     ConverterProperties converterProperties = new ConverterProperties();
     HtmlConverter.ConvertToPdf(htmlSource, pdfDest, converterProperties);
   }
  }
  </code></pre>
  
  <p>Thank you in advance for your help.</p>