title: What's the better way to generate pdf using javascript and/or php?
body: <p>I have a web app and I need print the data into pdf.
  In back-end I use php, while in front-end a javascript MVC framework (backbone.js).</p>
  
  <p>I don't know if generate the pdf only using javascript (..then using data cache) or using ajax that will call a php page that will generate the pdf... What's the better solution? </p>
  
  <p>Naturally I need be able to print, save and use the stylesheet for pdf.</p>
  
  <p>Thanks.</p>