How can I change the Printer Settings like Printer name and print a PDF document from a web page? I have written code in javascript but it is opening the PDF Print dialog. I want to bypass that. See my code :
function doit() {
var x = document.getElementById("doodad");
x.click();
x.setActive();
x.focus();
x.print();
}
howdy
If i write Print(False) It wont open dialog but printing not done. What should I do?
But for JavaScript you will need to use the "HostContainer" object. Take a look at this and related objects in the Acrobat JavaScript Reference and the Guide. Then look at this example.
[url=http://www.windjack.com/WindJack/Browser2PDF/brwsr2acroJS.htm]http://www.windjack.com/WindJack/Browser2PDF/brwsr2acroJS.htm[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script