I don't think it's possible to print a document using PHP because printing is handled on the client side and PHP is server side
I use javascript to do this:
<script type="text/javascript">
function printpage()
{
window.print()
}
</script>
<form>
<input type="button" value="Click to print this page" onclick="printpage()">
</form>
Rob