Convert raw HTML to PDF on Azure
Hello everyone,
For one of my application, I have to convert raw HTML to PDF file and make the user download it. The application is hosted in Azure.
I'm currently using the free version of NReco.PdfGenerator and it worked well for what I need.
But that library doesn't work with HTML5/CSS3.
So I'm looking for another free library that can replace it. Something simple, I don't need a strong library with a lot of utilities, only a simple one able to do Library.Converter(html).
I wanted to try "whhtmltopdf", with Codaxy.WkHtmlToPdf or Pechkin wrapper but it seems the executable can't work on Azure. I saw other threads saying to use a webjob to run the .exe, but the problem lie in the fact that whhtmltopdf does operations forbidden in Azure, and I believe that it will not work with a webjob either.
I'm also using iTextSharp for other stuff. Could it work for my needs (like I said, HTML5/CSS3)?
tl;dr: Can someone lead me to a free solution to convert raw HTML (HTML5/CSS3) to a PDF file in an Azure app?
0 comments:
Post a Comment