Print.js
Print.js copied to clipboard
is it possible to do it just client side only without the need of a server ?
I am trying to do it on android with a page that requires login so the server won't have access to it.
doing it like this
javascript:{const script=document.createElement('script');script.src=' https://printjs-4de6.kxcdn.com/print.min.js';document.body.appendChild(script);printJS()}
thanks.
If you don't need a server your server to serve style files or a pdf itself, this should work fine entirely client side. We are doing this.
@WorldsEndless using this bookmarklet i am getting this error
javascript:{const script=document.createElement('script');script.src=' https://printjs-4de6.kxcdn.com/print.min.js';document.body.appendChild(script);printJS(docs/printjs.pdf)}
Uncaught ReferenceError: docs is not defined
any idea how pull it off ?
thanks a lot : )