1

I have the following:

<iframe src="ACRBusinessCL.pdf" id="PDFtoPrint" height="800" width="800">
</iframe>
<form>
<input type="button" value="Print" onclick="document.getElementById('PDFtoPrint').focus(); document.getElementById('PDFtoPrint').contentWindow.print();">
</form>

What's driving me crazy is: I thought I had this working at one point. The pdf file is showing up in the iframe, but when I click Print, nothing happens.

Phillip Senn
  • 46,771
  • 90
  • 257
  • 373

1 Answers1

0
<script type="text/javascript">
    function printPage(yoururl) {
            var w = window.open(yoururl);
            w.document.write(yoururl);
            w.print();
    }

</script>
Elyor
  • 5,396
  • 8
  • 48
  • 76