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

Suite call to Create Package of Illustrator Document

New Here ,
Apr 17, 2017 Apr 17, 2017

Copy link to clipboard

Copied

For an ai document, we have an option to create a package in Illustrator under "File > Package...".

Is there an SDK available to make package programmatically ?  In case if there is no direct SDK available, can I mimic the operation using combination of SDK suite calls ( get fonts, get images, get linked resources and place them as package folder).

Please suggest.

TOPICS
SDK

Views

362

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
Adobe
Adobe Employee ,
May 03, 2017 May 03, 2017

Copy link to clipboard

Copied

LATEST

Hi,

You can invoke any menu item programatically. Here's how to do it:

sAICommandManager->GetCommandIDFromName(kCommandStr, &commandID);

sAIMenu->InvokeMenuAction(commandID);

This would work exactly the same way as if the user had clicked on the menu item himself.

The strings for various commands are defined in AIMenuCommandString.h but the constant for Package seems to be missing. The string constant for the package command is "Package Menu Item".

Let me know if this works for you.

Thanks.

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