This content has been marked as final. Show 5 replies
Show us the code you're using.
Here is a code snippet:
// myDoc is a document created by InDesign CS3, opened with app.open() ...
// myLib is a library, opened with app.open() ...
// myPage is a page of myDoc (starting page number is 3)
// get asset and place (TextFrame, saved in the library with bounds [30,17,50,117])
var myAsset = myLib.assets.item(myAssetname);
// InDesign Server places the asset to the last activePage value in InDesign
myObject = myAsset.placeAsset(myDoc);
// after placing the asset, the bounds has negative x values!
// get original bounds for placing on destination page
myBounds = myObject.geometricBounds;
// move object to destinateion page
// position object
myObject.geometricBounds = myBounds;
Try changing that last statement to:
this change will work if the last saved activePage in the doc is the first spread with only one page (right side). If the saved lastPage property is the next spread (with two pages) this change will not work. The asset will be placed on the right side of the page...
Is there any chance to change the saved activePage in ID Server? Maybe the asset will then be placed on the right page.
In InDesign Server there is no active page. But what you can do is change the rulers to rulers per page so that the coordinates on all pages are the same.