dkirk Posted October 15, 2007 Share Posted October 15, 2007 I am looking for a way to automatically print a html page to adobe pdf when a page loads. I would like to control the name that the pdf file is saved as and the directory to which it is saved. I am now using the script below to open the print dialog box once the page loads but can this be taken a bit further? <script language="Javascript1.2"> <!-- function printpage() { window.print(); } //--> </script> <body onload="printpage()"> any help would be greatly appreciated.. Link to comment https://forums.phpfreaks.com/topic/73348-auto-print-to-adobe/ Share on other sites More sharing options...
fenway Posted October 16, 2007 Share Posted October 16, 2007 'type="text/javascript" is preferable to the language attribute... but I digress... print to PDF? Client-side? Link to comment https://forums.phpfreaks.com/topic/73348-auto-print-to-adobe/#findComment-370649 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.