is it possible to write JavaScript that programatically save the current page as a pdf
I wonder if there is a way to programmatically write a script to save a pdf of a page? I know we can manually right-click the page and get the Print menu out and save a PDF. But is there a way to do that programmatically?