echo "Getting printer's attributes: " . $ipp->getPrinterAttributes() . "<br />"; echo "Printer State: " . $ipp->printer_attributes->printer_state->_value0 . "<br />"; /* Resuming printer */ echo "<br /><br /><br /> TEST 26<br />"; echo "OPERATION " . $j++ . "<br />"; echo "Resuming Printer {$printer_uri}, then sleep 1 second: " . $ipp->resumePrinter() . "<br />"; sleep(1); echo "OPERATION " . $j++ . "<br />"; echo "Getting printer's attributes: " . $ipp->getPrinterAttributes() . "<br />"; echo "Printer State: " . $ipp->printer_attributes->printer_state->_value0 . "<br />"; /* setting printer's attributes */ echo "<br /><br /><br /> TEST 27<br />"; echo "OPERATION " . $j++ . "<br />"; $ipp->setAttribute('number-up', 2); $ipp->setSides(2); echo "Setting printer's attributes for {$printer_uri}:" . $ipp->setPrinterAttributes('text/plain') . "<br />"; echo "<pre>\n"; print_r($ipp->attributes); echo "</pre>\n"; echo "OPERATION " . $j++ . "<br />"; echo "Getting printer's attributes: " . $ipp->getPrinterAttributes() . "<br />"; echo "<pre>\n"; print_r($ipp->attributes); echo "</pre>\n"; /* rejecting jobs (CUPS specific)*/ echo "<br /><br /><br />TEST 28<br />"; echo "OPERATION " . $j++ . "<br />"; echo "Rejecting jobs for printer {$printer_uri} (CUPS operation): " . $ipp->cupsRejectJobs($printer_uri, $printer_state_message = "Printer stopped for maintainance") . "<br />"; // try to print // echo "OPERATION " . $j++ . "<br />"; $ipp->setCharset('us-ascii');