Converts html(with svg) to pdf in browser (or in phonegap app)