Acrobat User Community Forums

You are not logged in.     Log in to your AUC account.     Don't have an account? Sign up today

#1 2007-07-26 02:04:35

arghya.mp
Member
Registered: 2007-07-18
Posts: 2

PDF Print

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?


My Product Information:
Reader Standard 8 / Windows

Offline

 

#2 2007-07-28 15:33:24

thomp
Member

Registered: 2007-04-23
Posts: 1027

Re: PDF Print

Communication between Acrobat and HTML is dubious at best.  You can do this but from JavaScript but it's not reliable. There may be other methods using the Acrobat OCX from the browser. 

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.

http://www.windjack.com/WindJack/Browse … acroJS.htm

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

AcrobatUsers.com  >>  User Groups • News • Events • Articles • Blogs • How To • Resources • Member Log in