title: C# - How to convert an image to a PDF (using a free library)
body: <p>I've researched quite a bit but most answers I've found involve using iText which is only free for authors of open source software.</p>
  
  <p>My question is how to utilise a free (preferably well maintained) PDF library to convert an image into PDF. More specifically I'm using Selenium to test a webpage and part of the requirements are for a screenshot of a results page to be saved in PDF format.</p>
  
  <p>What I have at the moment:</p>
  
  <pre><code>        Screenshot screenshot = ((ITakesScreenshot)WebDriver).GetScreenshot();
          fileName =  filePath + fileName;
  
          screenshot.SaveAsFile($"{fileName}.png", ImageFormat.Png);
  
          // Convert to PDF and delete image
          // ?
  </code></pre>