These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Create from Scanner Toolbar Button

schmerold
Registered: Apr 12 2008
Posts: 2

What I'm looking for should be trivial, however I've searched for hours for Create from Scanner Toolbar Button

Anyone know where Javascript to do this simple task lives?

Actually, it doesn't have to be Javascript, I'm just looking for a one-button approach to scanning a document from the scanner and creating a document within Acrobat, many non-Adobe solutions exist.

TIA

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The scan menu item can be called from JavaScript. Try running this code from the console window.

app.execMenuItem("Scan");

It's exactly the same as hitting the menu item, and this is as good as it gets. You cannot skip over or automatically fill in the scanner dialog. But if this is the solution you are looking for the read this article on turning menu items into toolbar buttons.

http://www.windjack.com/resources/howto/WJHowTo_MenuButton.php

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script