Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Javascript: TextWrap not applied on text frame

Engaged ,
Jul 02, 2021 Jul 02, 2021

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.

SumitChaurasia_0-1625283599734.png

 

 

Best Regards,

Sumit

-Sumit
TOPICS
Scripting , SDK
280
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Jul 03, 2021 Jul 03, 2021

Problem resolved!!!

SumitChaurasia_0-1625301092447.png

Highlighted should be turn off.

 

Translate
Engaged ,
Jul 03, 2021 Jul 03, 2021
LATEST

Problem resolved!!!

SumitChaurasia_0-1625301092447.png

Highlighted should be turn off.

 

-Sumit
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines