Given the events (take them as a fact):
1) Rotativa PDF ( https://github.com/webgio/Rotativa ) uses exe to create PDF files, so it does not work on azure sites (without permission to execute this exe)
2) ABCPdf has the same problem
3) EO.Pdf has a similar problem ("uses Windows GDI, but Windows GDI is not supported by Windows Azure WebSite", http://www.essentialobjects.com/doc/4/install/deploy.aspx )
4) I do not want to have Azure Cloudapp (which will allow me to use Rotativa or ABCPdf). I am fine with my Azure site (apart from the previous issues).
Is there an alternative solution?
Is there any other library for creating PDF files from HTML that can run on the Azure website (rather than CloudService or VM)?
Update November 2014:
Today I use MvcRazorToPdf , which is great.
Controller Code:
return new PdfActionResult(palletReception, (writer, document) => { document.SetPageSize(new Rectangle(792f, 612f)); document.NewPage(); }) { FileDownloadName = "foo.pdf" };
View code:
A normal view with normal css. Must be accepted by iText XMLWorker Check this: http://demo.itextsupport.com/xmlworker/itextdoc/flatsite.html and this: http://demo.itextsupport.com/xmlworker/
pdf-generation abcpdf wkhtmltopdf azure rotativa
sports
source share