title: Running Phantomjs from javascript, JSP or Java
body: <p>Hi i am new to phantomjs,</p>
  
  <p>I have generated HTML to PDF by using command. But i want to generate PDF by clicking a button on the page. and call phantomjs by some way to generate my given URL to pdf.</p>
  
  <p>You can also suggest some api that generate generate PDF as HTML with charts and images and can easily integrated with JSP and Servlet.</p>