• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
1

Need help to create save to document management system button in a PDF form

Community Beginner ,
Jun 07, 2018 Jun 07, 2018

Copy link to clipboard

Copied

Hi All,

We are using iManage Filesite 9.0 client as a document management system which uses an API "IManAcrobatReader10.api" to display Save to Worksite option under the File menu. I need to access this using the Action "Execute the Menu item" but I only Save As option in there is which is local save to disk. I need to somehow call this API probably using a java script. I am not familiar doing that. Could someone provide probably an example of code.

I will appreciate the help!

TOPICS
Acrobat SDK and JavaScript

Views

929

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 08, 2018 Jun 08, 2018

Copy link to clipboard

Copied

Hi,

Could you call the app.ListMenuItems call to list all the menu items with the plugin installed, then see what the menu is called if it is listed and then you should be able to call app.execMenuItem ( "INSERTNAMEHERE"); to call that menu.

This is a bit of a shot in the dark as I don't have access to the product you are using so can't test.

Hope this helps

Malcolm

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 08, 2018 Jun 08, 2018

Copy link to clipboard

Copied

You will need to contact the makers of the plugin. Unless they make a way for you to do this, you can’t do it. There is no way to automate things which show a dialogue unless a specific way is made.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 08, 2018 Jun 08, 2018

Copy link to clipboard

Copied

Thanks I have contacted them and they asking me to buy a SDK license which cost $15000 for one line of code. I appreciate your help.

Yousuf Ali

[Personal contact info removed]

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 08, 2018 Jun 08, 2018

Copy link to clipboard

Copied

I've worked with document management systems in the past. I assure you, it's not one line of code to expose their plugin to the Acrobat JavaScript menu item interface... especially after Acrobat X and the whole JS/MenuItem blacklist architecture.

Assume you can't call the menu item. What is it you actually want to do? Check in the document? There's very likely another way.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 08, 2018 Jun 08, 2018

Copy link to clipboard

Copied

Well, you have your solution. You cannot do this without their SDK.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 08, 2018 Jun 08, 2018

Copy link to clipboard

Copied

Did you try the listMenuItems (not ListMenuItems) mentioned above? It should list the internal names, even of items added by plugins.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 08, 2018 Jun 08, 2018

Copy link to clipboard

Copied

This is the output on the console, Highlight is the one I am looking for.

Acrobat EScript Built-in Functions Version 11.0

Acrobat SOAP 11.0

[cName:File, oChildren:[[cName:Open],[cName:BH_Open],[cName:iMan:iManOpen],[cName:endOpenGroup],[cName:SPAObject 73],[cName:SPAObject 74],[cName:iMan:iManSave],[cName:endNewDocumentOnlineGroup],[cName:Save],[cName:SaveAs],[cName:SaveAsSubmenu, oChildren:[[cName:ADBE:SaveAsAccText],[cName:SPAObject 75],[cName:SPAObject 76]]],[cName:BH_Save],[cName:endSaveGroup],[cName:SPAObject 77],[cName:Email],[cName:SPAObject 71],[cName:SPAObject 72],[cName:],[cName:],[cName:],[cName:Revert],[cName:Close],[cName:endFormDataGroup],[cName:GeneralInfo],[cName:endDocInfoGroup],[cName:Print],[cName:endPrintGroup],[cName:SPAObject 67],[cName:SPAObject 68],[cName:RecentFile1],[cName:RecentFile2],[cName:RecentFile3],[cName:RecentFile4],[cName:RecentFile5],[cName:endRecentFileGroup],[cName:Quit]]]

Yousuf Ali

[Personal contact information removed]

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 08, 2018 Jun 08, 2018

Copy link to clipboard

Copied

I'm guessing its "iMan:iManSave" given the filename of the plugin.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 08, 2018 Jun 08, 2018

Copy link to clipboard

Copied

When I use:

app.execMenuItem("iMan:iManSave");

Console does not show anything but the dialogue box does not comes

But, when I user app.execMenuItem("iManSave");

it gives me error:

InvalidArgsError: Invalid arguments.

App.execMenuItem:1:Field Save Form to DMS:Mouse Up

Both ways, this window does not show up.

Yousuf Ali

IT Specialist

T 905.940.8700 ext.2243 | F 905.940.8785 | yali@wvllp.ca<mailto:yali@wvllp.ca>

Wilson Vukelich LLP | 60 Columbia Way, 7th Floor, Markham ON L3R 0C9 | wvllp.ca<http://www.wvllp.ca/>

This message may contain information that is confidential and privileged. Any unauthorized disclosure, copying, or use of this email is prohibited. If you are not the intended recipient, please immediately notify the sender and delete this e-mail and any copies. E-mail transmission cannot be guaranteed to be secure or error-free.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 08, 2018 Jun 08, 2018

Copy link to clipboard

Copied

app.execMenuItem("iMan:iManSave");

is the correct method. However, the menu item probably isn't whitelisted as being permissible to execute via JavaScript.

See documentation on how to edit your registry or plist.

JavaScript Controls

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 08, 2018 Jun 08, 2018

Copy link to clipboard

Copied

Thank You sooooo much Joel. I cannot thank you guys enough. This is amazing. It works after whitelisting the menu in the registry.

Yousuf Ali

IT Specialist

T 905.940.8700 ext.2243 | F 905.940.8785 | yali@wvllp.ca<mailto:yali@wvllp.ca>

Wilson Vukelich LLP | 60 Columbia Way, 7th Floor, Markham ON L3R 0C9 | wvllp.ca<http://www.wvllp.ca/>

This message may contain information that is confidential and privileged. Any unauthorized disclosure, copying, or use of this email is prohibited. If you are not the intended recipient, please immediately notify the sender and delete this e-mail and any copies. E-mail transmission cannot be guaranteed to be secure or error-free.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 08, 2018 Jun 08, 2018

Copy link to clipboard

Copied

LATEST

Glad that worked out.

J-

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines