[JS] Pages placePoint value doesn't work


hello everyone,

 

i trying place excel file textframe set in masterpage.

 

the first digit of placepoint value array doesn't affect position of text frame. if set number high, script throws error stating "this value cause 1 or more objects leave pasterboard". second affects y-coordinate expected.

 

1    doc = app.open(filepath = "d:/base.indt");

2    excelfile = new file ("d:/source.xlsx");

3    docstorylist =  doc.pages[0].place (excelfile, [2, 7], undefined, false, true);

4    docstory =  docstorylist[0];

 

 

many in advance!

bgfrhlp

i founded here:

http://forums.adobe.com/message/3732719#3732719

 

instead placing excel file page, should placed text frame. there must 1 textframe in masterpage work.

 

1     doc = app.open(filepath = "d:/base.indt");

2     doc.textpreferences.smarttextreflow = true;

3     mastertextframe = doc.pages[0].appliedmaster.textframes[0].override(doc.pages[0]);

4     excelfile = new file ("d:/source.xlsx");

5     docstory = mastertextframe.place (excelfile);

 

still thinking how placepoint supposed used. nice if pointed error in code.



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