samedi 28 mars 2015

Can javascript get or set printer info?

Through Javascript (or jquery) is it possible to do one of the following...



  1. Find out the current page size and orientation of the browser's print dialog.


OR



  1. Set (or at least suggest) a page size and orientation to the browser's print dialog.


I have images of various sizes and dimensions, and I would like to provide a printable form which makes the best use of the selected page size. I.e. I want to scale and or rotate the image so that it takes up as much of the page as possible.


Or is there a way to handle this in CSS?


Aucun commentaire:

Enregistrer un commentaire