Note that printer_set_option will not work due to a bug in php_printer.dll. As far as I can tell this extension has been abandoned for quite some time.
(PECL printer SVN)
printer_set_option — Configure the printer connection
The function sets options for the current connection.
printer_handle must be a valid printer handle.
Option can be one of the following constants:
The option value.
Returns TRUE on success or FALSE on failure.
Example #1 printer_set_option() example
$handle = printer_open();
printer_set_option($handle, PRINTER_SCALE, 75);
printer_set_option($handle, PRINTER_TEXT_ALIGN, PRINTER_TA_LEFT);