PhantomJS as web job in Azure

PhantomJS is not working on azure Webjobs.

I tried to execute it through CMD shell [yoursite].scm.azurewebsites.net/DebugConsole , but it hanges when I call it with raserize.js script.

you can use phantomjs as worker role, it will work.

Update

Regarding to this:
https://stackoverflow.com/a/23000040/3080500

phantomJS uses GDI to render images and pdf, and GDI is blocked in Azure Website

ref : GDI is not enabled in azure webisites http://social.msdn.microsoft.com/Forums/windowsazure/en-US/b4a6eb43-0013-435f-9d11-00ee26a8d017/report-viewer-error-on-export-pdf-or-excel-from-azure-web-sites

ref : PhantomJS uses GDI for rendering fonts : https://github.com/ariya/phantomjs/blob/6a01a8dece0c4dd697eaa0b208057d2bd43a30f3/src/qt/mkspecs/win32-msvc2003/qmake.conf#L63

Leave a Comment