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

How to insert text vertically from down to upwards in a textFrame using indesign javascript

Engaged ,
Sep 23, 2022 Sep 23, 2022

Copy link to clipboard

Copied

This is how i am getting text when i place text inside this selected textframe. 

image (12).pngexpand image

Is there anyway to place the text vertically from down to upwards the textframe as in below image

image (13).pngexpand image

 

TOPICS
How to , Scripting

Views

227

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 , Sep 23, 2022 Sep 23, 2022

Thanks for your suggestion @m1b , as you said I tried by rotating it and then redefining the geometricBounds of the textFrame. Now its working fine!

var myMasterSpread =app.activeDocument.masterSpreads.item(0);
var ClineFrame = myMasterSpread.textFrames.add ({
              geometricBounds: [0, 0, 5 , 60]              
            }); 
        ClineFrame.contents = "Need to insert text like this";
        ClineFrame.rotationAngle = 90;
        ClineFrame.geometricBounds =[26, 43, 5, 74];

 

Votes

Translate

Translate
Community Expert ,
Sep 23, 2022 Sep 23, 2022

Copy link to clipboard

Copied

Hi @Karthik SG, so you want to know how to —in a script—make a text frame with text in it and rotate it 90°?

-Mark

Votes

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
Engaged ,
Sep 23, 2022 Sep 23, 2022

Copy link to clipboard

Copied

 @m1b , actually I already placed a textframe in certain position vertically. Now need to insert content in that textFrame vertically from down to up. 

 

So is it possible to create a new textFrame and insert content into it and rotate it and then align that textFrame to my required geometric bounds which i already have!

 

Votes

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
Engaged ,
Sep 23, 2022 Sep 23, 2022

Copy link to clipboard

Copied

Yes @m1b , trying to do it in script!

Votes

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
Engaged ,
Sep 23, 2022 Sep 23, 2022

Copy link to clipboard

Copied

LATEST

Thanks for your suggestion @m1b , as you said I tried by rotating it and then redefining the geometricBounds of the textFrame. Now its working fine!

var myMasterSpread =app.activeDocument.masterSpreads.item(0);
var ClineFrame = myMasterSpread.textFrames.add ({
              geometricBounds: [0, 0, 5 , 60]              
            }); 
        ClineFrame.contents = "Need to insert text like this";
        ClineFrame.rotationAngle = 90;
        ClineFrame.geometricBounds =[26, 43, 5, 74];

 

Votes

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