$ipp->setJobName("PHP Test: Text String", true); // default is false: number is automagically appended $ipp->setData("This is a text string"); echo "Print String: " . $ipp->printJob() . "</br />"; echo "Job Attributes:<pre>\n"; print_r($ipp->job_attributes); echo "\n</pre>\n"; // for restart job operation (later) $first_job = $ipp->last_job; /* printing a text file */ echo "<br /><br /><br /> TEST 4<br />"; // HINT: you _must_ supply a charset or set output as raw text // note that mimeMediaType is resetted to octet-stream after each call of printJob (this is a feature). echo "OPERATION " . $j++ . "<br />"; $ipp->setCharset('us-ascii'); $ipp->setMimeMediaType('text/plain'); $ipp->setJobName("PHP Test: US ASCII file", true); // default is false: number is automagically appended $ipp->setData("./test.txt"); //Path to file. $ipp->setAttribute("job-sheets", array("confidential")); echo "US ASCII file Job status: " . $ipp->printJob() . "<br />"; $ipp->setAttribute("job-sheets", ""); $ipp->setAttribute("cpi", ""); //reset cpi $ipp->setAttribute("lpi", ""); /* printing a document by URI */ echo "<br /><br /><br /> TEST 5<br />"; echo "OPERATION " . $j++ . "<br />"; echo "Job Print URI status: " . $ipp->printUri($document_uri) . "<br />"; /* printing a text file in utf-8 */