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

Detect transparency from file code

Community Beginner ,
Nov 15, 2022 Nov 15, 2022

Copy link to clipboard


Hello guys,


I'm working for a project and i want to code something where a user can upload an .ai file. But there's a catch, because the .ai can't have any transparency in the file. It's because that will ruin something when it needs to be printed. My question is, is there a way to detect in a file without opening it in illustrator but opening it in an text editor. To look if there's transparency in the file or colors?


[See Screenshot] 

I have made 2 same vectors one has transparency the other one doesn't. I see that in the file that has no transparency the 'HasVisibleTransparency' is false. Does someone have documentation or know more about this subject? 


Is 'HasVisibleTransparency' the only variable that needs to be checked if there's transparency in the file? I hope someone has experience on this subject and can help me ;). Ty in advantage

Scripting , Third party plugins , Tools







Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation