Reputation: 353
I have an web application which print pages. But I want pages to be of different paper size like A5, A4, A3, etc. I want to set it from JavaScript and not manually. How can it be done?
Upvotes: 1
Views: 816
Reputation: 50291
You cannot overwrite the default/user print configuration .
But you can include a css specific to only print
<link media="print" rel="stylesheet" type="text/css" href="somePrint.css"/>
Upvotes: 1
Reputation: 177851
Only way I know of is http://scriptx.meadroid.com/
If that is not an option then the answer is: not possible
Alternative is to return PDFs in the format you want and allow the user to print "original format"
Upvotes: 1