find images resolution
hi forum,
i have tried alert links if has 250 or 300 resolution. if pdf placed, script replying error message.
"object not support property or method actualppi"
how can omit check pdf , continue find other images resolution , alert.
var doc = app.activedocument;
var graphics = doc.allgraphics;
var image, horres, verres;
for (var = 0; < graphics.length; i++) {
image = graphics[i];
if(image.actualppi[0] ==300 ||
image.actualppi[0] ==250){
alert ("images in 300 & 250 dpi");
}
}
thanks in advance forum...
for example check hasownproperty('actualppi') != false , start over
More discussions in InDesign Scripting
adobe
Comments
Post a Comment