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.. Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.