Skip to main content
Known Participant
July 24, 2012
Question

Text wrap after placing image?

  • July 24, 2012
  • 2 replies
  • 653 views

So I am placing my image using:.

var myGraphic = newDoc.pages.item(i).place(File(RepPhotoFile), [4.3703, 4.5277], undefined, false, true)[0];

How would I then apply a textwrap on that image with .125" around it?

I tried:

myGraphic.textFramePreferences.insetSpacing([.125, .125, .125, .125])

myGraphic.textFramePreferences.insetSpacing = [".125", ".125", ".125", ".125"];

myGraphic.TextWrapPreferences.TextWrapOffset = Array(".125", ".125", ".125", ".125")

This topic has been closed for replies.

2 replies

caseyctgAuthor
Known Participant
July 24, 2012

found it:

myGraphic.textWrapPreferences.textWrapMode = TextWrapModes.BOUNDING_BOX_TEXT_WRAP;

                                                myGraphic.textWrapPreferences.textWrapOffset = [0.6875, 0.6875, 0.6875, 0.6875];

caseyctgAuthor
Known Participant
July 24, 2012

myGraphic.textWrapPreferences.textWrapOffset = Array(".125", ".125", ".125", ".125");

no error, but nothing happens....