|All requests||>||Printing page setting dynamically||>||Request new recommendation||>||Featured requests||>||No recommendations|
by ramesh - 4 years ago (2015-01-12)
I have developed PHP based desktop application.
There is this printing abstraction class that does not seem to support setting the printing orientation directly but may be adapted for your needs.
Now if you you running that PHP application on Windows, you may trying using the PHP printer extension. It comes with a function named printer_set_option that you can set the PRINTER_ORIENTATION option to either PRINTER_ORIENTATION_PORTRAIT or PRINTER_ORIENTATION_LANDSCAPE. Then you can create your own user interface to let the user change that option.