I had the same problem as chris, when i tried to print on mac os x 10.4 the print job would appear with the correct name “Dymo LabelWriter 450″ but never print. How to Use JavaScript to Print a PDF. It is understandable that you may want to print a PDF file using code located directly within your web page. The alternative is. Adding a print button to your page and controlling what will print. JavaScript to print Div content.; Author: Rakesh S S; Updated: 4 Dec 2012; Section: Client side scripting; Chapter: Web Development; Updated: 4 Dec 2012 This is my code script var body = dddddd var script = script window.print(); /scr'+'ipt ; var newWin = $( printf )[0].contentWindow. !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN html xmlns= . To make sure that your visitors have JavaScript enabled before you provide them with a button that only works using JavaScript, you can use JavaScript to print out. Here is a function to print a PDF from an iframe. You just need to pass the URL of the PDF to the function. It will create an iframe and trigger print once the PDF is. Javascript es un lenguaje que puede ser utilizado por profesionales y para quienes se inician en el desarrollo y diseño de sitios web. No requiere de compilación ya. Learn how to implement a print button for your web pages with Tizag.com's Javascript Print lesson.