Copy link to clipboard
Copied
Dear Scripters,
Anyone have the experience of TextWrap not applied on text frame using javascript but place image and apply text wrap its working.
f = new File ("C:\\Users\\sumit\\Desktop\\Test\\201908108_Fig1.tif");
graphic = page.place(f, [0,0])[0];
gFrame = graphic.parent;
tFrame = page.textFrames.add({geometricBounds: [0,0,150,300], contents: TextFrameContents.PLACEHOLDER_TEXT});
gFrame.textWrapPreferences.properties = {
textWrapMode: TextWrapModes.JUMP_OBJECT_TEXT_WRAP,
textWrapOffset: [18,18,18,18],
};
Above code is working on new file but existing file wrap not applied.
For your reference here is a snapshot.
Best Regards,
Sumit
Problem resolved!!!
Highlighted should be turn off.
Copy link to clipboard
Copied
Problem resolved!!!
Highlighted should be turn off.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now