printer_set_option

(PECL)

printer_set_option -- Configure the printer connection

Description

bool printer_set_option ( resource handle, int option, mixed value )

The function sets the following options for the current connection. handle must be a valid handle to a printer. For option can be one of the following constants:

Example 1. printer_set_option() example

<?php
$handle 
printer_open();
printer_set_option($handlePRINTER_SCALE75);
printer_set_option($handlePRINTER_TEXT_ALIGNPRINTER_TA_LEFT);
printer_close($handle);
?>