Skip to main content
Participant
Jul 21, 2025 9:15 AM UTC
Question

Illustrator SDK - save as tiff is giving error

Hello,

 

In our plugin, we are trying to save as tiff image which was working fine in 27.2 version of AI.

After that i updated to 28.7 and now 29.6. in these versions, i came to know that when i am trying to save tiff, getting this error.

Error: "An unknown error caused the operation to fail"

error code is returning some bigger random number (on debug - checked)

here is the code i am using.

/////////////////

const char *fileFormatName = "TIFF";
err = sAIDocument->WriteDocumentWithOptions(parent_dir, fileFormatName, kFileFormatExport | kFileFormatWriteAs | kFileFormatWrite , NULL, false, NULL);

////////////////////////////

after executing this line, getting that error.

But file is getting saved and i can able to open the same in Illustrator also.

is there any changes related this with new versions ?

 

Regards,

Gopinath.

3 replies

justlearn
Community Expert
Community Expert
Jul 27, 2025 12:22 AM UTC

@gopi_0349 obviously the new versions of Illustrator did change of course. So, to answer your question, yes, the version changed hence the updates. If your plugin worked for '27.2' it's pretty obvious the newer versions doesn't play as nice with the plugin. I would go back to the creator of the plugin if they have an updated version for newer version of Illustrator

Translate
m
gopi_0349Author
Participant
Jul 28, 2025 4:02 AM UTC

Thank you for your reply.

 

Please let us know the feedback from your plugin creator.

 

Regards,

Gopi.

Translate