[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.javascript

Printers using javascript

techtechie140

7/16/2015 1:55:00 PM


For sure, the Javascript as such was not designed to read the device details. But I have a requirement to identify the printer detail.

Is it possible to get the list of Printers attached to the PC or Mac from Chrome? I'm looking for a solution that will block the users from accessing the printers from my site. So far, I couldn't find any.

Any help appreciated.

Thanks,
4 Answers

Ben Bacarisse

7/16/2015 2:52:00 PM

0

techtechie140@gmail.com writes:

> For sure, the Javascript as such was not designed to read the device
> details. But I have a requirement to identify the printer detail.
>
> Is it possible to get the list of Printers attached to the PC or Mac
> from Chrome?

I hope not; if there is, I would consider it a bug and report it!

> I'm looking for a solution that will block the users from
> accessing the printers from my site. So far, I couldn't find any.

I'm not sure what "from my site" means here. It could refer to the
server, but in that case the problem is reversed -- the user should
block your server from accessing their printers. If you mean that you
want to block a user from accessing their own printers, what has that to
do with you or your site?

--
Ben.

techtechie140

7/16/2015 11:15:00 PM

0

Hi Ben,

Thanks for your reply.

The site I referred is used to print documents only once. It's a public site, which should allow a user to download and print the PDFs only once. I can have Adobe Javascript API which can control number of prints. But unfortunately, if the user uses PDF printer or XPS printer, they can reproduce the document.

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.

I do understand from Chrome Beta/Dev versions 44 and above support a new set of APIs for chrome.printerProvider


Evertjan.

7/17/2015 7:18:00 AM

0

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)

Sister Ray

7/31/2015 12:49:00 PM

0


> The site I referred is used to print documents only once. It's a public site, which should allow a user to download and print the PDFs only once. I can have Adobe Javascript API which can control number of prints. But unfortunately, if the user uses PDF printer or XPS printer, they can reproduce the document.

You are aware of machines that copy printed pages, aren't you?