Evertjan.
7/17/2015 7:18:00 AM
techtechie140@gmail.com wrote on 17 Jul 2015 in comp.lang.javascript:
> Hi Ben,
>
> Thanks for your reply.
What reply?
This is usenet, not email, you should quote what you are responding on.
> The site I referred is used to print documents only once.
That is fine, I am used to seeing the sun when I wake,
but more often than not it rains.
> It's a public site, which should allow a user to download
> and print the PDFs only once.
[Do you mean by "public site", one where no login is needed?]
Don't be daft, printing is not under the control of a website,
downloading might be, but then the user needs to be identified
by login or cookie possibly against her or his will.
> I can have Adobe Javascript API which can control number of
> prints.
I doubt that, as again it needs identification to limit the number of
downloads.
> But unfortunately, if the user uses PDF printer or XPS printer,
> they can reproduce the document.
Your fortune is bound to change, fortunately!
Don't assume you are the technical boss over what you publicize.
> Adobe's DRM solution work as either allow print or disallow print. I'd
> like to see if there is any option available in javascript.
You probably mean clientside Javascript on a browser.
Javascript scripts [Javascript just being a scripting language], can do a
lot given the right platform.
> I do understand from Chrome Beta/Dev versions 44 and above support a new
> set of APIs for chrome.printerProvider
So?
"This PDF will selfdestroy in 5 seconds",
and you will see a puff of white smoke?
The only part of the web YOU OWN is on your own server,
Javascript execution on the server is quite possible,
but it generally is not done to do printing on the server.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)