title: How do I save PDF files within a web browser - using a bookmarklet?
body: <p>I'm building a social bookmarking application for use within large companies. </p>
  
  <p>It has a simple JavaScript bookmarklet which currently works fine - the bookmarklet allowes users to save a bookmark from popular browsers. It works for public web links quite well - and is fairly browser-agnostic. The closest example of such a bookmarklet is this:</p>
  
  <p><a href="http://delicious.com/help/bookmarklets" rel="nofollow">http://delicious.com/help/bookmarklets</a></p>
  
  <p>When I am viewing a PDF in my browser (let's say Chrome/Mac):</p>
  
  <p><a href="http://website.com/file.pdf" rel="nofollow">http://website.com/file.pdf</a></p>
  
  <p>This does not work of course - since there is no way to inject HTML markup on top of a PDF being viewed in-browser. </p>
  
  <p>What is the best approach to making links to non-http resources work within a bookmarklet? Do I have to create then inject some kind of invisible iframe and then grab a parent frame and it's URL to be able to save it? </p>