title: Converting HTML to Output the body content to PDF
body: <p>I'm looking for a way to convert the content in the body of a HTML webpage into a pdf when a button/image (link) is clicked.</p>
  
  <p>I looked into jspdf and mPDF, but those solutions aren't quite producing what I want.</p>
  
  <p>I'd like the entire contents between the body tags to be what a user can save a s PDF - preferably with all of the styling (or as much as possible) preserved.</p>
  
  <p>Shouldn't it be as simple as some code that essentially produces a screen shot of the page (although that might include unnecessary things such as URL bar, etc., and would likely render the PDF unsearchable in whatever storage set up that the user saves it to (but that isn't a priority right now)?</p>
  
  <p>Summing up, I'm looking to have code (preferably some simple JS) that will achieve this goal of capturing content in the body tags, and saving it to a PDF at the user's command.</p>
  
  <p>Thanks for attention and any insight :-)</p>