Skip to content

Instantly share code, notes, and snippets.

@dzfranklin
Created September 24, 2016 19:56
Show Gist options
  • Save dzfranklin/bfd0b784a9f0547a147341ce0ecaf583 to your computer and use it in GitHub Desktop.
Save dzfranklin/bfd0b784a9f0547a147341ce0ecaf583 to your computer and use it in GitHub Desktop.
let pdf_viewer = document.querySelector("div[pdfng]");
let pdf_url = angular.element(pdf_viewer).scope().pdf.url;
open(pdf_url);
@dzfranklin
Copy link
Author

This technically doesn't print. It opens the pdf in your browser so you can ctrl p ctrl w

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment