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

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

Engaged ,
Sep 23, 2022 Sep 23, 2022

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
246
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 , 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];

 

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

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

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

 @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!

 

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

Yes @m1b , trying to do it in script!

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

 

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