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

save() function in javascript by default saves the file as ai

Explorer ,
Jul 03, 2021 Jul 03, 2021

Copy link to clipboard

Copied

Hi,

I am using save() function in Illustrator to save the opened file. I am having the PDF file opened in my Illustrator if there is any modifications in file then want to save the file as pdf only but if i use the  save() API  then it saves the file as ai.

Example:  app.activedocument.save()  //here my activedocument is .pdf file.

Is there any way to save the file in opened format only.?

Thanks,

Yogita

 

TOPICS
Scripting , SDK

Views

318

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
Community Expert ,
Jul 03, 2021 Jul 03, 2021

Copy link to clipboard

Copied

LATEST

Since AI is not a general purpose PDF editor, you will have to use the SaveAs function and set the options as required.

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