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

Community Beginner ,
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

40

Likes

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 Professional ,
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.

Likes

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