Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

find images resolution

$
0
0

Hi Forum,

 

I have tried to get alert for the links if it has 250 or 300 resolution. But if the pdf is placed, the script is replying error message.

"object does not support the property or method actualPPi"

 

How can i omit the check for PDF and continue to find other images resolution and alert.

 

 

 

var doc = app.activeDocument;

var graphics = doc.allGraphics;

 

var image, horRes, verRes;

 

for (var i = 0; i < graphics.length; i++) {

     image = graphics[i];

     if(image.actualPpi[0] ==300 ||

     image.actualPpi[0] ==250){

alert ("images are in 300 & 250 dpi");                 

          }

     

     }

 

 

thanks in advance forum...


Viewing all articles
Browse latest Browse all 37788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>