Making same length text and evenly distributing it

Hi all,
I'm creating a series of posters and I need to have lines of text with single words or phrases of the same length. Obviously the font size would need to change up or down depending on the number of letters per word/phrase that need to be squeezed in the given length.
The distance between lines needs to be the same (ie 2mm).
At the moment, I'm doing these manually, ie, I'm typing the text and manually entering the width and then aligning all the words and phrases to create a rectangular block of text. Also, I manually adjust the distance between each line, since using the distribute doesn't yield the desired effect...
Is there anyway to sort of automate parts of the above process as I need to make a few posters with different texts.
Thanks in advance for your help.

here you go, select your text frames before running. It should work in CS4 and ealier, I'll have access to CS5 tomorrow, will test there, hope it works too.
#target Illustrator
//  script.name = textBlock_CS4.jsx; // not tested on CS5 yet.
//  script.description = converts selected point textFrames into a Block of Text;
//  script.required = one document with at least two selected text frames;
//  script.parent = carlos canto // 12/4/11;
//  script.elegant = false;
if (app.documents.length > 0)
                    var sel = idoc.selection;
                    if (sel.length>1)
                                        var width = prompt ("Enter desired Text Block width", 300, "Text Block"); //
                                        if (width!=null) // quit if pressed Cancel
                                                            var idoc = app.activeDocument;
                                                            //var ilayer = idoc.activeLayer;
                                                            var dupLayer = idoc.layers.add(); // add a layer to place the new block of text
                                                            dupLayer.name = "Text Block";
                                                            var blockGrp = dupLayer.groupItems.add(); // add a group to final output
                                                            blockGrp.name = "Text Block";
                                                            var left = idoc.width/3; // place block at the bottom 3rd of the page
                                                            var top = idoc.height/3
                                                            var spacingMM = prompt ("Enter spacing in Millimeters", 2, "Text Block"); // text lines spacing in mm
                                                            var spacingPts = new UnitValue(spacingMM,"mm").as ("pt") // convert to points
                                                            for (i=0; i<sel.length; i++) // loop thru selection
                                                                                if (sel[i].typename == "TextFrame") { // continue if textFrame, ignore other pageItems
                                                                                          var itext = sel[i].duplicate(blockGrp, ElementPlacement.PLACEATEND); // duplicate text
                                                                                          itext.selected = false; // deselect it
                                                                                          grpName = itext.contents; // get contents to name outline group
                                                                                          var ioutlined = itext.createOutline(); // create outlines
                                                                                          ioutlined.name = grpName; // rename group
                                                                                          var perCent = width/ioutlined.width*100; // get scaling percentage, based on desired width of block
                                                                                          var scaleMatrix = app.getScaleMatrix(perCent, perCent);
                                                                                          ioutlined.transform (scaleMatrix); // scale outlined text
                                                                                          ioutlined.left = left; // position text
                                                                                          ioutlined.top = top+ioutlined.height+spacingPts; // top = previous item top + spacing + current item
                                                                                          top = ioutlined.top // get current top to use on next item
                                                                                } // end if - non text frames
                                                                      } // end for loop - selection
                                                  } // end check prompt for calcel
                              } // end if selection > 1
                    else
                                        alert ("Select at least 2 textFrames before running");
     } // end at least one document
else
        alert ("There are no open documents");
Message was edited by: CarlosCanto

Similar Messages

  • I uploaded the new firefox and all of my texts and pictures became small. ive tried the zoom, enlarging the texts, and even add-ons and nothing is working. how can i get it back to were it was before i downloaded the new firefox?

    ever since i uploaded the new firefox i cant get my texts and pictures back to the size i had them before. ive tried everything i could think of to get this problem fixed. now my texts are running into each other because the texts windows are so small and the texts are so large. i love firefox but ever since i uploaded this new one i cant use it.

    Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    * http://kb.mozillazine.org/Zoom_text_of_web_pages
    You can use one of these extensions to adjust the default font size and page zoom on web pages:
    * Default FullZoom Level - https://addons.mozilla.org/firefox/addon/6965
    * NoSquint - https://addons.mozilla.org/firefox/addon/2592

  • If I'm copying text and/or vector elements from Indesign to Photoshop how come their pixel sizes change even though I opened the same sized document and my indesign file is a web file?

    If I'm copying text and/or vector elements from Indesign to Photoshop how come their pixel sizes change even though I opened the same sized document and my indesign file is a web file?

    >my indesign file is a web file
    Pardon?
    Or do you mean that, when you created a new document, you choose Web as intent maybe?

  • How to display data with the same text and key in the drop down list?

    Hi All,
    Would like so to seek for you advice on the above mention topic. How to display the data with the same text and key using function module 'VRM_SET_VALUES'. From my testing by writing a program, this function module will only show the text and key if both have different data. Please find the coding as below. Is the normal behaviour of this function module? How to overcome this problem? Thanks in advance.
    REPORT ZTESTING.
    TYPE-POOLS: VRM.
    DATA: NAME  TYPE VRM_ID,
          LIST  TYPE VRM_VALUES,
          VALUE LIKE LINE OF LIST,
          c(20) type c.
    *      c = 'select any'.
    data:begin of itab occurs 0,
          kunnr like kna1-kunnr,
          name1 like kna1-name1,
         end of itab.
    data:begin of jtab occurs 0,
          kunnr like kna1-kunnr,
          land1 like kna1-land1,
         end of jtab.
    PARAMETERS: p_list(20) AS LISTBOX VISIBLE LENGTH 20
                              default 'SELECT'.
    AT SELECTION-SCREEN OUTPUT.
    NAME = 'p_list'.
    VALUE-KEY = 'Name'.     "---> Data for key is the same with text
    VALUE-TEXT = 'Name'.    "--> Data for text is the same with key
    APPEND VALUE TO LIST.
    VALUE-KEY = '2'.
    VALUE-TEXT = 'Country'.
    APPEND VALUE TO LIST.
    CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.
    start-of-selection.
    select kunnr name1 up to 20 rows from kna1 into table itab.
    select kunnr land1 up to 20 rows from kna1 into table jtab.
    case p_list.
    when '1'.
    loop at itab.
    write:/ itab-kunnr,itab-name1.
    endloop.
    when '2'.
    loop at jtab.
    write:/ jtab-kunnr,jtab-land1.
    endloop.
    endcase.
    <Added code tags>
    Moderator Message: Please use the "code" tags to format your code snippet.
    Edited by: Suhas Saha on Nov 17, 2011 11:19 AM

    shawnTan wrote:
    Hi All,
    >
    > Would like so to seek for you advice on the above mention topic. How to display the data with the same text and key using function module 'VRM_SET_VALUES'. From my testing by writing a program, this function module will only show the text and key if both have different data. Please find the coding as below. Is the normal behaviour of this function module? How to overcome this problem? Thanks in advance.
    >
    >
    REPORT ZTESTING.
    >
    > TYPE-POOLS: VRM.
    >
    > DATA: NAME  TYPE VRM_ID,
    >       LIST  TYPE VRM_VALUES,
    >       VALUE LIKE LINE OF LIST,
    >       c(20) type c.
    >
    > *      c = 'select any'.
    >
    > data:begin of itab occurs 0,
    >       kunnr like kna1-kunnr,
    >       name1 like kna1-name1,
    >      end of itab.
    >
    > data:begin of jtab occurs 0,
    >       kunnr like kna1-kunnr,
    >       land1 like kna1-land1,
    >      end of jtab.
    >
    > PARAMETERS: p_list(20) AS LISTBOX VISIBLE LENGTH 20
    >                           default 'SELECT'.
    >
    > AT SELECTION-SCREEN OUTPUT.
    >
    > NAME = 'p_list'.
    >
    > VALUE-KEY = 'Name'.     "---> Data for key is the same with text
    > VALUE-TEXT = 'Name'.    "--> Data for text is the same with key
    > APPEND VALUE TO LIST.
    >
    > VALUE-KEY = '2'.
    > VALUE-TEXT = 'Country'.
    > APPEND VALUE TO LIST.
    >
    > CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.
    >
    > start-of-selection.
    > select kunnr name1 up to 20 rows from kna1 into table itab.
    > select kunnr land1 up to 20 rows from kna1 into table jtab.
    >
    > case p_list.
    > when '1'.
    > loop at itab.
    > write:/ itab-kunnr,itab-name1.
    > endloop.
    >
    > when '2'.
    > loop at jtab.
    > write:/ jtab-kunnr,jtab-land1.
    > endloop.
    > endcase.
    >
    > <Added code tags>
    >
    > Moderator Message: Please use the "code" tags to format your code snippet.
    >
    > Edited by: Suhas Saha on Nov 17, 2011 11:19 AM
    This surely seems to be a bug to me(if not by design),  did you check for any SAP notes? Perhaps a front end trace can help(Note 407743) !
    -Rajesh.

  • I'm having some trouble spacing groups of text boxes. Does anyone have an automated way to evenly distribute space between groups of two text boxes?

    There isn't much more to this question. My format works like this:
    H2 Headline
    H3 Explanation
    H2 Headline
    H3 Explanation
    H2 Headline
    H3 Explanation
    I need to distribute these text boxes evenly down my page. It's a bit of a pain to do so manually. Since there are other objects on the page, the spacing guidelines get thrown out of whack. My most secure way is to create a box, line it up with the bottom of the first group and the top of the next. Then repeat all the way down the page.
    I thought about using just one text box but rejected it. I need to have content pulled from other portions of the site. That wouldn't be possible with only one text box. Plus, it's much easier to format the text box than individual text.
    If anyone has an idea, I'd love to hear it.
    Thanks.

    mitchging If I am understanding what you require, this might be what you're after.Assuming you want to have all the boxes equally spaced, you can use the Align panel. In the screen grab the four boxes are sets of two grouped text boxes, similar to your description. Select the first group object, then select the remaining three. Open the Align panel. First set the Align To method to Key Object. Now set the distribution spacing to the required value. When you click the Vertical Distribute Space button, they will all be spaced equally. You can then fine-tune it by changing the value and hitting the button again whilst they are still selected.
    I hope this helps.
    David

  • Help: Just finished shooting a wedding and Aperture crashes constantly during editing. All pic's in RAW and even after making sure I have the latest Aperture update, I have had to rebuild my library twice and "repair" does not seem to fix the issue. Help?

    Help: Just finished shooting a wedding and Aperture crashes constantly during editing. All pic's in RAW and even after making sure I have the latest Aperture update, I have had to rebuild my library twice and "repair" does not seem to fix the issue. Help?

    Well!
    If you have ThunderBolt, I would go with such for an External Working Drive, spinning platter or SSD depending on your budget
    This does not have to be huge just big enough to house your most current Jobs
    Once the Current Job is put to rest I would move it to a larger multi bay hard drive unit, USB or FireWire nothing fancy, no RAID, set up as one single Disk
    This would only be accessed when something is needed from a past Job so the connection does not have to be speedy
    The Drobo would be relegated to Vaults and backups
    You can set up a Vault on the Drobo to back up the External Working Library and then Reconnect it when you have moved the Library over to the other Enclosure
    This has worked for me pretty smoothly for a long while, but I have found over the years that one can not assume all people work in the same manner! :-)

  • I just upgraded to Lion. When I import photos it imports the same photo over and over. Not even one of the photos selected!! Do you know how to fix this?

    I just upgraded to Lion. I just installed iLife'11 last night. When I import photos into iMovie (version 9.0.4.) , it imports the same photo over and over as if it were the ones I selected. Not even one of the photos selected!! The thumbnais show that unselected photo,  if I preview then I just see the preview screen all black.
    I even tried making an iPhoto album and importing straight from there. Exact same thing. I have restarted the application, restarted the computer, and googled half-to-death. No answers.
    Do any of you know how to fix this?
    I am working on OS X Lion (10.7.1) , a 2009 15" MacBook Pro. 4GB Memory. 2.4 GHz Intel Core 2 Duo. 4GB Memory 1067 MHz DDR3.
    Hope someone can help!!!

    It is working now. I no longer get the message about the item not being available in the US and I can access the store.

  • I downloaded the new 6 software. Me and my boyfriend share the same iTunes account and now every time I text him I also get a copy of the text sent to my from my number. How do I get that to stop?

    I downloaded the new 6 software. Me and my boyfriend share the same iTunes account and now every time I text him I also get a copy of the text sent to my from my number. How do I get that to stop?

    Go to settings > messages > send & receive
    check or uncheck the correct phones numbers and/or email addresses

  • Hi I've a big problem with adobe acrobat reader XI pro and I hope you can help me. The problem is; when I past copied text from some pdf books (not all of them) it past symbols only! wherever I past it! and even if I coped that text from another pdf reade

    Hi
    I've a big problem with adobe acrobat reader XI pro and I hope you can help me.
    The problem is; when I past copied text from some pdf books (not all of them) it past symbols only! wherever I past it! and even if I coped that text from another pdf reader (adobe pdf reader, internet browsers, ...etc.).
    This problem started to happen since yesterday when I installed adobe acrobat reader XI pro to try it before I buy it, and before that when I was using the free adobe pdf reader I was totally able to copy any text from any pdf and past it anywhere with nothing wrong.
    What can I do?
    thank you a lot.

    There is no product called Adobe Acrobat Reader Pro. There is
    - Adobe Acrobat Pro ($$)
    - Adobe Reader (free)
    Which do you have? And are you a programmer?

  • How can I prevent a PDF file from being copied, printed or downloaded? Students should only be able to view the text and and not distribute it in any way.

    How can I prevent a PDF file from being copied, printed or downloaded? Students should only be able to view the text and and not distribute it in any way.

    You can prevent it from being printed by applying a security policy to it
    in Acrobat. The rest can't be prevented, unless you spend  a LOT of money
    on DRM protection.

  • Getting the text and the shape to play at the same time in Keynote '08

    Searched FAQ without any luck. I put text into a shape. When 'played' however, the text comes in on first click, and shape on the second click. I would like both to enter slide simultaneously. How can I accomplish this ??
    THanks Fred

    Hi Fred,
    There are two ways to achieve this. Firstly you can group the two objects and they will then appear at that same time once you select a build for the group.
    You can use the Build inspector to do the same. Once you've chosen the build for the two objects click on the More Options button at the bottom. Select one of the objects (most likley listed as 'Text' and 'Shape' and chose from the Start Build sub menu 'Automatically with build X' where build X is the number of the build of the first object.

  • How do I combine text and image on same screen?

    How do I comgine text and an image on the same screen in Final Cut Express 4.  I have had to use scrolling text and then import a graphic.  I want the text and graphic on the same page.  Thanks .

    Place your video clip (or still image clip) on track v1.  Then place your text clip immediately above it on track v2.  The text will overlay the image.  (Note: it doesn't necessarily have to be v1 & v2 - what's important is that the text clip be on a video track higher than the video clip/image clip.)
    Generally best to use white text, sans-serif font, larger than you might think you initially wanted.

  • How do I combine text and photos on the same page in iPhoto using photobook

    How do I combine text and photos on the same page in iPhoto using photobook?

    You mean while creating a book in iPhoto?  Click on the layout button while viewing a page and select the layout that includes both text and photos.  Most themes will have those options.
    OT

  • My father updated his iPhone and once he did that he would receive all of my texts and iMessages, is that because we are on the same iCloud account? And if that's why how can I remove it or make it so he doesn't get all my messages

    My father updated his iPhone and once he did that he would receive all of my texts and iMessages, is that because we are on the same iCloud account? And if that's why how can I remove it or make it so he doesn't get all my messages

    you can change the accounts of different apps in the phone's settings menu.

  • I have and iPad and I have and iPhone 5 my husband has another one and I singed all of them with the same Apple ID and  accound now my husband can see all the text I send and I get everything he gets how could I get his phone out of my accound

    I have and iPad and I have and iPhone 5 my husband has another one and I singed all of them with the same Apple ID and  accound now my husband can see all the text I send and I get everything he gets how could I get his phone out of my accound

    Mishijos3 wrote:
    I have and iPad and I have and iPhone 5 my husband has another one and I singed all of them with the same Apple ID ...
    Have a look here...
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l

Maybe you are looking for

  • How to improve performance of Oracle Forms Server ?

    Recently we converted our Application which was Developed in Forms 5.0 and Reports 3.0 into Forms6i to host that on to Web. We also loaded ORACLE 9iAS (on Windows NT 4 with service pack 3) from "Enterprise Edition" option by selecting Oracle Database

  • In PI how do I convert the XML payload (input) to a text file and send out

    I am extracting data from SAP and sending thru XI / PI to a file (non-sap system). On the receiving end, I need the file to be a text file, with one row for each "FTZ_Row concatenated_data" tag in the input.  It needs to be just a plain text file wit

  • 100k black exporting to PDF as rich black

    Hey guys, I've rattled my brain for long enough over this issue, it's time to ask the wider community. When I export a pdf with any of my export profiles, all overprint 100k (black swatch) blacks are exported as CMYK. It doesn't matter if it's text o

  • Error when Depreciation Run

    Dear All, This error message displayed when i running the Fixed Asset Depreciation Run directly until period 10, while it is ok if i running the Depr Run until period 8 and 9. "The depreciation run 100000001 failed and has been cancelled; Error: -10

  • Opening FCP 6.0.2 projects with 6.0?

    Greetings, I have a client sending me a project created with fcp 6.0.2, and the studio I'm at has 6.0... Will I open it? Hope so, they won't be able to upgrade until the owner returns next month