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

Adding options to Acrobat context menus

jkintzele
Registered: Dec 6 2007
Posts: 21

Hello. I would like to use JavaScript to add some options to a right-click context menu in Acrobat. Specifically, I would like to add a few color-selection choices at the top level of the context menu that appears when right-clicking on an annotation. I cannot for the life of me find the cName handle to use when modifying these menus... In my work we use color-coded annotations in our PDFs, and having to select "properties > color dropdown > color > OK" gets very old when you've got thousands of pages to review and maybe tens of thousands of annotations to alter (these can't simply be batched because a human judgment must be applied to each). And yes, I'm aware of the toolbar with the color option, but that also is more work than necessary, especially since it only appears to be available sometimes. Any help greatly appreciated. John

My Product Information:
Acrobat Pro 7.0.9, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The names of items on context and specialty menus are not published. But even if they were I'm not sure you could add to them. It's just not an option.

A good alternative is to create toolbar buttons with the functionality you want. You can do this from a folder level JavaScript. Here is a link to a helper tool for creating and managing JavaScript toolbar buttons.

[url=http://www.windjack.com/products/acrobuttons.php]http://www.windjack.com/products/acrobuttons.php[/url]

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

jkintzele
Registered: Dec 6 2007
Posts: 21
Thanks for the answer. It doesn't surprise me that the context menu handles aren't published. Still, that hasn't stopped undocumented information from creeping into the public domain before, so I remain hopeful. Your product looks helpful were a button the best answer for my situation, but it isn't. Any Adobe-employed developers out there in a position to open the kimono?