print PDF PHP

<!DOCTYPE html>
<html>
<head>
<script>function iprint(ptarget){
        ptarget.focus();
        ptarget.print();
         }
</script>

</head>
<body>




<iframe name="theiframe" id="theiframe" width="500" height="200" src="dw.pdf" style="display:none">
</iframe>
     <input type="button" value="print iframe" onclick="iprint(theiframe);" />
</body>
</html>

No comments:

Post a Comment