How to detect default printer properties from browser?

Posted by Annan on Stack Overflow See other posts from Stack Overflow or by Annan
Published on 2010-03-18T14:19:01Z Indexed on 2010/03/18 14:21 UTC
Read the original article Hit count: 228

Regardless of if this is a good idea or not, is it possible to detect printer attributes from the browser?

The idea is that you want to print out a brochure that's selling something. Depending on different things such as if the printer is black&white/colour, high/low resolution, laser/inkjet, printing to a file, etc, you want to print out the page differently. For example you might choose different text colours or fonts, different image sizes, etc.

My initial thoughts are: ActiveX, Flash, Java, Silverlight, browser plugins. Kudos if it's possible in javascript.

I'm interested in all ways to do this, cross browser or not.

Please no reasons about why this shouldn't be done ^_^

© Stack Overflow or respective owner

Related posts about browser

Related posts about hardware-detection