Highlighted

Adobe illustrator : Javascript to be executed from server

Community Beginner ,
Jun 10, 2020

Copy link to clipboard

Copied

We prepared some Javascript script to calculate some technical element for an AI document in input like color occupation... 

We need to expose this functionality in a server

The idea is to have some http web page where we upload an AI document 

The Web page will execute the Javascript in server side and return to user technical element

You know how we can execute illustrator script in server side?

Can we use node js and how? 

TOPICS
Scripting, SDK

Views

402

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

Adobe illustrator : Javascript to be executed from server

Community Beginner ,
Jun 10, 2020

Copy link to clipboard

Copied

We prepared some Javascript script to calculate some technical element for an AI document in input like color occupation... 

We need to expose this functionality in a server

The idea is to have some http web page where we upload an AI document 

The Web page will execute the Javascript in server side and return to user technical element

You know how we can execute illustrator script in server side?

Can we use node js and how? 

TOPICS
Scripting, SDK

Views

403

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
Jun 10, 2020 1
Adobe Community Professional ,
Jun 10, 2020

Copy link to clipboard

Copied

At this time, Adobe doesn't have a legally licensed version which allows one to have an autonomous Illustrator accessible by outside processes which are not initiated by the licensed Creative Cloud user using it at their workstation. Nor is Illustrator built in a way that would facilitate proper 'headless' control such as attainable with InDesign and its server-version called "InDesign Server". However, they are 'OK' with an internal setup where some licensed users can through a web input trigger an Illustrator process which could be ran on other computers.

Keep in mind that doing so to accept non-internal customer web data to achieve web-to-print or even having non-licensed users do the triggering may be a violation of the general terms of service.
So, besides all that, I think it's possible via node js. However, I don't think it would be easy  (at least for me because I've never done anything node before) because you'll have to watch your Illustrator instance for various errors its prone to, such as a rendering error when the system runs out of RAM when some effect is used.

 

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
Reply
Loading...
Jun 10, 2020 1
Adobe Community Professional ,
Jun 10, 2020

Copy link to clipboard

Copied

what Vasily said above, but for educational purposes, can you show us your set up? Where is the server hosting the Web App? is node installed in your home computer along side Illustrator?

 

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
Reply
Loading...
Jun 10, 2020 1
Community Beginner ,
Jun 10, 2020

Copy link to clipboard

Copied

We are in design steps :

 1- Javascript script accepting an illustrator document in input

2- this script return some technical data (like number of colors and color distribution)

3- We want to expose the functionnality as Web App, so the user will upload the AI (illustrator document) to the Web App and then will have the technical informations shown in the Web App. we tried execution with node JS but we can not. are there solutions

 

Are there others solution beside javascript, with others languages and architecture ?

 

Many thanks to your help

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
Reply
Loading...
Jun 10, 2020 0
Most Valuable Participant ,
Jun 10, 2020

Copy link to clipboard

Copied

Ok, this is certainly forbidden if the site is exposed to other users. Your Illustrator license only allows it run for you, not for someone else uploading. You will find most software you have that is sold with a single user license does not allow web use, unless it’s made for that. This can be a very expensive mistake. It has cost companies millions. 

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
Reply
Loading...
Jun 10, 2020 1
Community Beginner ,
Jun 11, 2020

Copy link to clipboard

Copied

OK.. 

The functionality will not draw anything 

Just extract some technical informations

Technically is this possible? Are there others technical possibilies? 

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
Reply
Loading...
Jun 11, 2020 0
Most Valuable Participant ,
Jun 11, 2020

Copy link to clipboard

Copied

It is not at all relevant whether you draw anything. If you use Illustrator, if you even install Illustrator on a server, this is not allowed. There is no point discussing the technical possibilities if there is no licensing possibility....

Of course, it may be technically possible for a third party app or library to extract information. Bear in mind you may have to deal with classic AI (EPS based) and modern AI (PDF based). 

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
Reply
Loading...
Jun 11, 2020 1
Community Beginner ,
Jun 11, 2020

Copy link to clipboard

Copied

OK so use scripting javascript we need the whole installation of illustrator?

 

what others library/technologie that can help ?

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
Reply
Loading...
Jun 11, 2020 0
Resources