HTML Renderer on Azure

1.2k views Asked by At

We are using HTML Renderer to convert an HTML file to a PDF file in one of our ASP.NET MVC projects deployed on Azure. The web app generates the HTML page on the fly and converts it to PDF. However this fails on Azure.

My search on SO pointed out that PDFsharp GDI version does not work on Azure and to use the WPF version. But the WPF version doesn’t have a HTML to PDF method (we are using the PdfGenerator.GeneratePdf method).

What are my options here?

Does iTextSharp work on Azure?

2

There are 2 answers

0
I liked the old Stack Overflow On

You can take the source code for PdfGenerator.GeneratePdf and compile it with the WPF build for use on Azure.

1
Sampath D On

We ended up using iTextSharp on Azure without any issues. And it's free :)