Save .ai file as .svg without save as prompt
Hi All,
I have a scenario where I want to save .ai document as .svg silently(without save as dialog) in the background. I'm using following code to do this. But it is giving save as dialog.
sAIActionManager->AIActionSetStringUS(paramValue, kAIExportDocumentNameKey,ai::UnicodeString("test.svg"));
sAIActionManager->AIActionSetString(paramValue, kAIExportDocumentExtensionKey,kAISVGFileFormatExtension);
sAIActionManager->PlayActionEvent(kAIExportDocumentAction,kDialogOff,paramValue);
Is there anything I'm doing wrong?
If anyone knows how to do this kindly post code snippet or technique on how to do it.
Thank you for your help
