Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Server Developers
Viewing all articles
Browse latest Browse all 20709

Get linked image path

$
0
0

Hello!

 

I want to change a low res image to a hi res image, but I can't get the low res path.

 

for (var pageItemIdx = 0; pageItemIdx < myDocument.allPageItems.length; pageItemIdx++) {

  var pageItem = myDocument.allPageItems[pageItemIdx];

    if ( "geometricBounds" in pageItem && pageItem instanceof Rectangle ) {

 

      try  {

        app.consoleout( pageItem.allGraphics.itemLink.filePath );

      } catch (error) {

        app.consoleout( error.toString() );

      }

    }

}

 

pageItem.allGraphics.itemLink.filePath does not work....using applescript I was able to do it with

 

return file path of item liink of image....

 

But with javascript I can't

 

Anyone?


Viewing all articles
Browse latest Browse all 20709

Trending Articles



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