Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 152999

Re: why this command does not work properly

$
0
0
  1.     pageItem.geometricBounds = [frameSize[0], frameSize[1], frameSize[0] - Number(changeY.editContents), frameSize[1] + Number(changeX.editContents)]; 
  2.             pageItem.move(myDoc.pages[pageNo.editContents - 1]); 
  3.             pageItem.move([x, y + (++ic * 10)]); 

 

 

Hi,

 

Two things:

1. (line 1; cosmetic) I would change "frameSize[0] - Number(...)" to "frameSize[0] + Number(...)"

2. Inbetween lines 2 and 3 above - right after moving pageItem to a page (right one in facing doc) its left-up corner is located in [0,0] point however (somehow) belongs to a left page (can not explain why). If you include additional step (move by):


pageItem.move(undefined,[10,10]);


you will see the difference.


Jarek


Viewing all articles
Browse latest Browse all 152999

Trending Articles



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