Skip to content

Instantly share code, notes, and snippets.

@payingattention
Forked from gr2m/convert_dreamcode.js
Created May 2, 2013 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save payingattention/5504362 to your computer and use it in GitHub Desktop.
Save payingattention/5504362 to your computer and use it in GitHub Desktop.
// convert a dom element to a PDF and download it
convert( $('.invoice') ).to( 'invoice.pdf' ).download()
// convert another website to a png and show it on the page
convert( $('.invoice') ).to( 'invoice.pdf' ).prependTo( $('.screenshots') )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment