(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.
成功时返回 TRUE, 或者在失败时返回 FALSE.
Example #1 printer_set_option() example
<?php
$handle = printer_open();
printer_set_option($handle, PRINTER_SCALE, 75);
printer_set_option($handle, PRINTER_TEXT_ALIGN, PRINTER_TA_LEFT);
printer_close($handle);
?>