Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Javascript: TextWrap not applied on text frame

Engaged ,
Jul 02, 2021 Jul 02, 2021

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.

SumitChaurasia_0-1625283599734.png

 

 

Best Regards,

Sumit

-Sumit
TOPICS
Scripting, SDK, Server developers

Views

68

Likes

Translate

Translate

Report

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!!! Highlighted should be turn off.

Likes

Translate

Translate
Engaged ,
Jul 03, 2021 Jul 03, 2021

Copy link to clipboard

Copied

LATEST

Problem resolved!!!

SumitChaurasia_0-1625301092447.png

Highlighted should be turn off.

 

-Sumit

Likes

Translate

Translate

Report

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