How to move an image?


hey guys,

 

i started learning how script , i'm here problem.

 

at work need place pdf files (+/- 30 pages) indesign document further work. wanted write script moves (already placed) pdfs x=0; y=0 on every page.

and here's problem: script isn't moving pdfs, moves image frames.

 

thanks in advance, michael

 

#target indesign var _dok = app.activedocument; var _allpages= _dok.pages;   (i = 0; < _allpages.length; i++) {     var _page = _allpages[i];              (k = 0; k < _page.pageitems.length; k++)         {                var _kasten = _page.pageitems[k];                    var _koordinaten =_kasten.geometricbounds;             var _breite = _koordinaten[3] - _koordinaten[1];             var _hoehe = _koordinaten[2] - _koordinaten[0];             _koordinaten[0] = 0;             _koordinaten[1] = 0;             _koordinaten[2] = _hoehe;             _koordinaten[3] = _breite;             _kasten.geometricbounds = _koordinaten;          }    } 

hi statixx91;

 

 

use...

 

     _kasten.move([0,0]);

 

instead of changing geometricbounds.

 

thanks.



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support