title: How can I get the rendered output of a View as a string with the javascript executed
body: <p>I am using ASP.Net MVC5.
  I need to create a PDF of a View which contains a c3.js chart.</p>
  
  <p>As the chart is rendered an created through javascript (it creates an svg).</p>
  
  <p>I tried to get the View output mentioned in:
  <a href="https://stackoverflow.com/questions/483091/render-a-view-as-a-string">Render a view as a string</a></p>
  
  <p>But I just get the initial HTML of the View with the CSS styling.
  I need the javascript to be executed before creating the PDF.</p>
  
  <p>Please let me know if anybody has faced such a situation.</p>
  
  <p>Or it also would be helpful to suggest any javascript library where I can get a specific  as a pdf (without a server trip).</p>
  
  <p>Thanks.</p>