Closed. This question is seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. It does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago . The community reviewed whether to reopen this question 2 years ago and left it closed:Original close reason(s) were not resolved
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. 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. What I have at the moment:
Screenshot screenshot = ((ITakesScreenshot)WebDriver).GetScreenshot(); fileName = filePath + fileName; screenshot.SaveAsFile($".png", ImageFormat.Png); // Convert to PDF and delete image // ?