Added pdf rendering with phantomjs