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

Automate Extend Reader Rights

John Renfrew
Registered: Jun 7 2010
Posts: 13
Answered

Is is possible to use Javascript to open a document in Acrobat Pro , Extend Features from the Advanced menu and then close and save the same.

Happy to spend some time reading if someone can point me in the right direction.

My Product Information:
Acrobat Pro 9.3.1, Macintosh
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi John,

No, not possible. Adobe sells a server product for that ( thousands of dollars). If they automated the process in Acrobat Pro it would make that server product less attractive than it already is at its price point.

Hope this helps,

Dimitri
WindJack Solutions
www.pdfscripting.com
www.windjack.com
John Renfrew
Registered: Jun 7 2010
Posts: 13
A) Fantastic response speed... thank you

B) While not the answer I wanted to hear, it will save me hours trying to do something I can not...
Merlin
Acrobat 9ExpertTeam
Registered: Mar 1 2006
Posts: 766
You can't do it with JavaScript but you can do it using AppleScript, saving thousand of dollars…

See that post, you just have some lines to modify : http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=20336

;-))
John Renfrew
Registered: Jun 7 2010
Posts: 13
Just had a quick look and there is some promise in there....
Only the work I need to do is on a Windows system, so I have more to do I expect


Thanks Merlin
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi Merlin,

So your Applescript is simulating the mouse clicks to perform the embed indexing? Good one. I think you could also do this on a Windows system, but you would need to install a mouse/keystroke emulator app since that is not built-in like it is on a Mac.

Hope this helps,

Dimitri
WindJack Solutions
www.pdfscripting.com
www.windjack.com
Merlin
Acrobat 9ExpertTeam
Registered: Mar 1 2006
Posts: 766
I don't know for PCs (I'm working on Mac) but I guess that a VB can do it…

;-)
John Renfrew
Registered: Jun 7 2010
Posts: 13
www dot autoitscript dot com

that's a fantastic tool
AND it's free....
steev43230
Registered: Nov 21 2010
Posts: 5
I've never been all that successful with AutoIt - it looks awesome but I can't find away to start a script with a keyboard hotkey. So I've been using AutoHotKey instead, which is nearly identical. The following AutoHotKey script works just find for this purpose - it's not very sophisticated and requires running the script via the Win+n key combination, and overwrites and closes the file when it's done. For my use, needing for only about 15 files, it's fine.


//doubleclick this "auto.ahk" file to start, then open the PDF file in acrobat and make it the active window
//i think this is the proper way to comment out a line
#n:: //set Win+ as hot key to start the script
Send, {ALTDOWN}f{ALTUP}axf{ENTER}
Sleep, 1000 //the sleeps appear to be necessary for some reason
Send, {ENTER} //command {ENTER 2} does not work for some reason
Sleep, 1000
Send, y //yes I do want to overwrite the file
Sleep, 1000
Send, {CTRLDOWN}w{CTRLUP} //close the window, move along, nuthin' to see here folks. Drink Guinness to test.


=====


By the way, users of Acrobat 7 are able to create a button that will execute a menu item and then Document-->Enable for Commenting and Analysis in Reader. But the Document menu has been removed in Acrobat X and File--Save As for button execution of menu items has been restricted. It sure would be nice for Adobe to return this capability to us.