Copy link to clipboard
Copied
Hi
I am trying to get the below details as report from Illustrator, but these are all working in InDesign application, but I am unable to get the below details in illustrator. Can you please check and help me out from this?
1. List of fonts and fonts status (missing, installed, etc.) in particular document. Below coding is for InDesign.
var myDoc = app.activeDocument;
var fontList = myDoc.fonts;
for(var i=0; i<fontList.length;i++) {
alert(fontList[i].name+" Status is "+fontList[i].status);
}
2. Images (PlaceItems [ai,psd,tif,jpg,PDF]) status (linked, missing, etc), and its scaling details (X and Y).
Copy link to clipboard
Copied
InDesign Script won't work in Illustrator, both applications have their own scripting api. They're not compatible with each other.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Hi,
Below is the link where you have read about script API.
https://illustrator-scripting-guide.readthedocs.io/
Copy link to clipboard
Copied
Thanks. I am looking there, and check whether am I get solution for my issues.
Copy link to clipboard
Copied
Hi,
You will get list of fonts in Illustrator using
app.textFonts
Following snippet will give list all list of fonts
var fontList = app.textFonts;
for (var i = 0; i < fontList.length; i++) {
$.writeln(fontList[i].name);
}
For placedItems in Illustrator (Links in Indesign), you can access placedItmes as
var placedItems = app.activeDocument.placedItems;
This will return all placedItems exists in the document. You can read about this more from the following link
https://illustrator-scripting-guide.readthedocs.io/jsobjref/PlacedItem/?highlight=placedItems
Copy link to clipboard
Copied