Planet PDF Forum Archive

Planet PDF ForumWowsers! This is page is old, head to the LIVE Planet PDF Forum. It features more than 10 conferences, covering everything from beginner to in-depth developer and pre-press discussions. If you wish to continue... one & two archive covers 1999-2011 (160,000 pages).


New Forum | Previous | Next | (P-PDF) Developers


Topic: MenuItemExecute and submenus
Conf: (P-PDF) Developers, Msg: 40476
From: JoggieJ
Date: 5/16/2002 03:47 PM

I have tried the same doing exactly as the manual says:

MenuItemExecute
BOOL MenuItemExecute(BSTR szMenuItemName);
Description
Executes the menu item whose language-independent menu item name is specified.
Parameters
Return Value
Returns true if the menu item executes successfully, false otherwise.
Related Methods
App.MenuItemIsEnabled
App.MenuItemIsMarked
App.MenuItemRemove
szMenuItemName The language-independent name of the menu item to
execute. See the “Lists” section in the Acrobat Core API
Reference for a list of menu item names.


Then going to the “Lists” section in the Acrobat Core API:
Menu and Menu Item Names
Menus are listed in their order on the menubar.
NOTE: Many of these are not available in Reader.
Methods: AVMenubarAcquireMenuByName
File
Open
Web2PDF:OpnURL
OpenAsPDF
endFileAccessGroup
Close
Save
SaveAs
Revert
endSaveGroup
Import
Scan
ImportNotes
AcroForm:ImportFDF
Export
ExtractImages
ExtractImages:JPEG
ExtractImages:PNG
ExtractImages:TIFF
ExportNotes
AcroForm:ExportFDF
AcroSendMail:SendMail
endImportExportGroup
DocInfo
GeneralInfo
endGeneralInfoGroup
OpenInfo
FontsInfo
PrepressInfo
EScript:DataObjects
AutoIndex:DocInfo
ShowDocumentMetadataDialog
Weblink:Base
DocSecurity
endDocInfoGroup
Batch
BatchEdit
AVSequenceMenuItemAtom-0
AVSequenceMenuItemAtom-1
AVSequenceMenuItemAtom-2
AVSequenceMenuItemAtom-3
AVSequenceMenuItemAtom-4
AVSequenceMenuItemAtom-5
AVSequenceMenuItemAtom-6
AVSequenceMenuItemAtom-7
Annots:GoBackOnline
endBatchGroup
PageSetup
Print
endPrintGroup
RecentFile1
RecentFile2
RecentFile3
RecentFile4
RecentFile5
RecentFile6
RecentFile7
RecentFile8
endRecentFileGroup
Quit
Edit
Undo
Redo
endUndoGroup
Cut
Copy
Paste
Clear
endEditGroup
CopyFileToClipboard
endOleGroup
SelectAll
DeselectAll
endSelectGroup
Find
FindAgain
AcroSrch:Tools
AcroSrch:Query
AcroSrch:Indexes


Now I was trying to use AcroSrch:Indexes like so:
MenuItemExecute("AcroSrch:Indexes")

This does not fail/bomb, but it definately does nothing as far as opening the menu item.

I also tried to use MenuItemExecute("File ") and MenuItemExecute("File") none of them do anyting.

This is in the development environment so I have both Acrobat and the Reader installed.

All of these return false:

Maybe I dont understand the manuals.

PDF In-Depth Free Product Trials Ubiquitous PDF

Debenu Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link...

Download free demo

Debenu PDF Tools Pro

It's simple to use and will let you preview and edit PDF files, it's a Windows application that makes...

Download free demo

Five visions of a PDF Day

In the world of PDFs or as we like to say Planet (of) PDF, a year isn't a real PDF year without an intense few days of industry knowledge sharing.

May 15, 2018
Platinum Sponsor





Search Planet PDF
more searching options...
Planet PDF Newsletter
Most Popular Articles
Featured Product

Debenu PDF Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link control. Take Acrobat to the next level.

Features

Adding a PDF Stamp Comment

OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.