asp.net mvc - Wht is the best solution for HTML to PDF (on Azure Web app) -


actually trying convert html content pdf using nreco pdf converter, however, line of code pdfdoc.generatepdf(htmlcontent); unable through on azure web app, works on dev environment. question cloud service should go for?

azure apps (former websites) operate in restricted (partial-trust) environment , wkhtmltopdf.exe (that internally used nreco pdfgenerator wrapper) cannot executed in case directly asp.net application.

update:

unfortunately not work azure webjobs well: tasks executed under same (limited) environment websites , gdi functions used wkhtmltopdf disabled.

if asp.net app uses wkhtmltopdf-based component pdf generation (doesn't matter how invoked - in separate process or native dll api) work under azure webrole / workerrole / vm.

-- update 2017 --

wkhtmltopdf (and nreco pdfgenerator wrapper) can used azure apps vm-based subscription plan (basic or higher). @ least 1 issue still exists: seems fonts api still restricted , custom fonts cannot rendered pdf.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -