change the text of legend group object image size figure

I need to change the text frame size legend for figure based on the width of the figure in grouped objects

How to do it please advice.

Your information and code are not accurate! > Some parentheses are missing, expand the textframe 240 or the width of the image?

However: Everything made to the works contained in the user interface, it expands the scope of the legend in my test to the right. I decided to write an own function for editing.

main();

function main() {

var curDoc = app.activeDocument;
var allGroups =  curDoc.groups;

for (var i = 0; i < allGroups.length; i++) {
  var curGroup = allGroups[i];
  var pItems = curGroup.pageItems;
  if (pItems.length != 2) { continue; }
  for (var j = 0; j < pItems.length; j++) {
    var curItem = pItems[j].getElements()[0];
    var constrName = curItem.constructor.name;
    if (constrName == "Rectangle") {
      var rect = curItem;
    }
    else if (constrName == "TextFrame") {
      var tf = curItem;
    }
  }
  var rectGB = rect.geometricBounds;
  var tfGB = tf.geometricBounds;
  tfGB[1] = rectGB[1];
  tfGB[3] = rectGB[3];
  tfGB[2] = tfGB[2] + 20;
  tf.geometricBounds = tfGB;
  fitFrame(tf);
}

function fitFrame(aFrame) {
  var lastBaseLine = aFrame.lines[-1].baseline;
  var b = aFrame.geometricBounds;
  aFrame.geometricBounds = [b[0], b[1], lastBaseLine, b[3]];
}
}

Note: The script will check if there are two elements on the page of the group. It does not, check if these two elements are textframe and rectangle, it assumes that it is correct.

Kai

Tags: InDesign

Similar Questions

  • Is it possible to change the text in a smart object in illustrator?

    Is it possible to change the text in a smart object in illustrator? Thank you much for the help!

    And can anyone recommend educational resources for someone (me) who is a user HAVE ten years who need to work in PS for web models? Anything other than a basic PS tutorial. Something this specific task-oriented. I'm not a beginner PS - but especially used for the correction of photo so far.

    Truly - thank you! BTW - I'm in the Suite of 6 CS and CC will not be at my disposal.

    If you double-click on the smart object icon in the palette layers in Photoshop, it will open the original illustrator file in illustrator to be able to change it.

  • cannot change the text field after grouping

    Hi people,

    I have 3 single-line text fields and a logo combined using 'Add parents '.  For some odd reason, I can't select a field to edit text.  I can select them in the assets Panel and change the layout or style, but as soon as I double-click to edit the text, my selection goes to the div parent instead of the text field.  I tried to use the text as well, but it always happening in selection to the parent.  This isn't a big deal since I can change the text later in a Publisher, but it's a little frustrating.

    FWIW, I ran the update of this morning before starting, but I doubt that caused this nothing thanks for any help

    -Kevin

    So sorry Chris, in my frustration, I removed the parent and the group so I can get the item that I wanted to edit, and then recreated the parent.

    However, your description of the differences between the Group and Add Parent in this discussion: http://forums.adobe.com/thread/1361983?tstart=0 probably explains why I have problems.  I think I had GROUPED fields 3 text and then wrapped in this group and the image of the logo in another div with 'Add parents '.  I have probably not been not clicking successfully through the parent company to the group, and then in the text field.  In fact, I was clicking like mad, but probably not on the correct spot for each level.

    Thank you to specify how these elements work.

    -Kevin

  • Change the display time for grouped objects

    Hello, I have problems to change the display time for the grouped items. I use 7 Captivate and I love how now grouped items display only as an element in the timeline because it reduces the number of lines visiblein the chronology for each object on a slide. However, now that the grouped objects is more individually appear in the timeline panel, I can't see all the adjustments for group objects together.

    If someone else has had this problem and is there a work around? My main problem is that if I need to extend or shorten the audio to the slide, and I assigned a tip action to be grouped in order to adjust the grouped object to match the audio, I must now separate adjust, regroup, then reset the advanced action by using the name of the new group. It's frustrating and tedious.

    To enlarge and view the items grouped on the timeline, you need to click the arrow next to the group name. Once you develop, you can select the individual object and adjust the timings.

    Alternatively, you can select the individual object in the Group on the slide and adjust the timing of the accordion of timing. You can do it without separate.

    Anthony

  • Try to change the text on a memorial with image.jpeg

    When I paste my picture/text in Notepad or wordpad, it still display in a kind of code. I can't read or do anything, including the image. How can I make it stick to look exactly as it is in my photo file?

    When I paste my picture/text in Notepad or wordpad, it still display in a kind of code. I can't read or do anything, including the image. How can I make it stick to look exactly as it is in my photo file?

    ========================================
    Notepad and Wordpad are not image editors.

    Try Windows Paint:

    Windows Vista-
    Open Paint
    http://Windows.Microsoft.com/en-us/Windows-Vista/open-Paint

    With the help of paint
    http://Windows.Microsoft.com/en-us/Windows-Vista/using-paint

    Paint tools
    http://Windows.Microsoft.com/en-us/Windows-Vista/paint-tools

    Adding text with Microsoft Paint
    http://www.peddlergraphics.com/PaintText.html

    Add text to a picture with Windows Paint
    http://www.pcdon.com/deAddingTexttoaPhoto.html

    Or program with a better interface and
    more options... try Picasa free software:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Picasa
    http://Picasa.Google.com/

    After you download and install Picasa...
    Open the program and double left click
    an image to open the editing functions.

    To add text to the front of the photo...
    choose... Simple retouching / text button...

    More info...

    How to add text to your Photos using
    Google Picasa 3
    http://www.ehow.com/how_4599330_text-photos-using-Googles-Picasa.html

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • How to edit a .ai (converted to a smart object) in photoshop.  I want to change the text and changed the text and graphics

    In photoshop, how to change a file .ai (converted to a smart object)?  I want to change the text and changed the text and graphics.

    Total beginner, so need help.

    Thank you very much.

    That must be edited in Illustrator.

  • Change the text of the legend on formready (running on the server)

    Hello

    To change the text of the caption of a field of text as follows:

    (formready, executed on the server, javascript)

    TextField1.caption.value.resolveNode("#text").value = "hello";

    It is a dynamic form and we use LC Forms ES 8.2 on a Windows platform.

    The problem is that the legend IS NOT change the text of the caption, if it runs on THE SERVER. If I change it to run it on the client (for example, Acrobat 9, PDF overview of LC Designer) it does not work.

    Thank you very much for your contributions!

    Daniel

    Set your renderAtClient on no. or false (I don't know the specific parameter). If you leave it in auto, then you allow the form to decide (form properties/Deafults). If the form is dynamic, then by default it will render to the client and not the server.

    Paul

  • change the type of legend

    I'm a captivate user in training.
    My settings created text captions, legends of suspicion (overview) and legends of failure when I recorded my video training, which has been authorized. I was tasked to remove text captions, but the legends of suspicion. Suspicion of legends seem to be the same as the legends of overview and I do not want to display on a roll - I want that they on the slide, most of the time. Is there a way to change the caption type without having to create all new? Better yet, is it possible to change the type of all the captions at the same time?
    Legend properties do not appear to offer this option, but I hope that maybe there's somewhere that I haven't looked.

    Hi klhdv

    Types of legend fall into a few different categories.

    * Standard text captions
    * Your comments legends
    * Rollover captions

    While you should be able to change all of a type of category to a different type in the same category, you can not change them in several categories. For example, if you use blue Adobe for a Standard text caption and you want ALL your Standard text captions to be blue Adobe, you can use the "Apply to all" feature you see on the legend dialog box to accomplish it. But if you also want to change the captions of all the "success" to be blue, Adobe, you would have to change among the legends of success, make the change, and then use them apply to all features.

    Yes, I know them apply to all features has a field where it says "any type of legend", but in my experience, this does not work most of the time for this.

    Here is the difference between a legend of suspicion and a caption simple flipping. A legend of suspicion is associated with a button object, click box or text entry area. It appears by positioning the mouse on these objects to provide a 'hint' that something can be done. With a standard typical bearing legend, you simply set an area where you want the user to hover over and Show legend by positioning the mouse over the area. The big difference here is that the ancient artifacts, they are interactive. Normally, the user must do something with them. Click or type the text. And with the latter, they simply have the mouse on and read.

    A bit more about changing the type of legend. There is no installation that I am aware of that you can use inside Captivate maybe right click on a legend of feedback and to choose to convert it to a standard legend text or a caption reversal.

    I hope this has been helpful for you... Rick

  • change the text of a comment to report programmatically

    I learn the new 2012 Diadem oriented object of the report.

    I'm changing the text of a comment to report programmatically.

    Dim Mycomment
    Set Mycomment = Report.ActiveSheet.Objects.Add (eReportObjectComment, "MyComment")
    MyComment.Position.ByBorder.top = 30
    MyComment.Position.ByBorder.bottom = 20
    MyComment.Position.ByBorder.Left = 20
    MyComment.Position.ByBorder.right = 30
    Text MyComment.Text = "Some"

    MSG for error on the last line of the previous code = "object does not support this.
    "property or method: 'text.

    I can change it manually by double-clicking the comment, but want to change it to
    the script.

    'Text' is available as an option when you type the script. The object "text".
    works great if I am modifying an eReportObjectText but not an eReportObjectComment.

    Thank you
    James

    Hello James,.

    Please check with updated the last line of code:

    Text MyComment.Comment.Text = "Some"

    Dia791

  • Change the text of each tab of a tab control

    I would change the text/display of the individual of a tab control tab label when the software is running.

    Is this possible? Or, is it a good idea for OR add an attribute of "legend of the tab" tab control, so it can be done easily?

    Thank you.

    Yes, you can change the label of a tab programmatically.

    http://digital.NI.com/public.nsf/allkb/F2C3875A7DC7C7BA86256B760007D122

  • How can I change the text at the bottom of the Windows Vista login screen?

    Hello
    I want to change the text at the bottom of the login screen (where it says 'Windows Vista '). Can I do this? If so, how?

    Hello

    the text is stored as a bitmap inside the Basebrd.dll. Use tools like Anolis.Resourcer or ResHacker to replace the bitmap image.

    André "a programmer is just a tool that converts the caffeine in code" Deputy CLIP - http://www.winvistaside.de/

  • I have dl'ed pic of Shutterstock Vector but can not change the text.

    I remember I have open upwards or something like that last year, but I forgot how much exactly.

    Anyone know how you can change the text in a vector image in Photoshop? When I open it, it's an entire layer. Cannot modify the text that was on the peak.

    You would have to edit it in Adobe Illustrator, and from there, you can delete the text. Double-click on the image to select the specific area (using the isolation mode) and then delete.

  • Acrobat Standard DC - can't change the text and text box properties

    Earlier this week, I lost the ability to change the properties of the text and text boxes.

    When I add a comment with a text box or in the text caption, I do all the time, I used to be able to change the font color, size, alignment, etc.

    Now, when I go to insert a text box or the legend, all the options in the properties bar are grayed out.

    This issue effects ONLY the text in the box and the caption functions. all the other drawing functions work very well. I can change the color, fill and the type of lines around the text, I can just change the text.

    Any suggestions?

    Thank you.

    Hello

    We have released an update today which solves the problem of the properties toolbar and now you can continue to use it outside of the app commenting as well. Please open Acrobat or Reader DC and visit help > check for updates to ensure that you are on the latest patch.

    Details on the release: https://helpx.adobe.com/acrobat/release-note/acrobat-dc-august-02-2016.html

    Please let us know how it goes.

    Thank you

    -ashu

  • How to change the text in illustrator

    I am pretty competent with Photoshop and muse, but only to learn illustrator, I'm fighting. I have a Logo and I want to change the text, but cannot me. It does not show in the art Board, writing will show a compound path, not as text characters. All thoughts

    You must create a new text object. Your text has been converted to paths.

  • When you change the text, all the text in the bounding box is removed...

    I have a PDF file that was created in a different version of Adobe. The Adobe program, I am currently working with that is Adobe Acrobat Pro DC. It is on a Windows 7 PC. When I change the text in the 'framework', any word, I try to change, all of the text in the box is removed. How can I stop this from happening?

    Nevermind, I figured it. I had select the bounding box and select "bring forward" under the "objects" tool

Maybe you are looking for

  • blackmail on me

    Last night I had a video conversation and she sent me a u.r.l which was my naked video, I'm afraid that she asks me 500 U.S. .d Vaya westernunion need to I do she also sent me all friends link to what I'm not. Me

  • Screen HP Touchsmart IQ504

    I have a pile of black pixels on the screen of my computer. I changed my background to see if this is the reason why this large black square appeared, but the black square remained. It seems that my computer screen goes and I only got it for a little

  • Reference a static open VI

    Hello guys,. To open the screws dynamically, instead of Hardcoding the name VI in a constant string, I do as indicated below to keep addictive for my VI, so if someone ever delete the VI of the project, move, rename, it will create a wire broken some

  • Product name: HP ENVY 15 No. TS: docking station for my laptop HP ENVY 15 TS

    I just bought this laptop and I need to buy a station of dociking to it. With my previous laptop was a connector on the bottom which would align with the docking station and to operate. The HP ENVY 15 TS laptop does not seem to have special connectio

  • you are neither allowed to access this file

    I restored my compaq 510 professional vista to factory settings, I couldn't open my files from the restore process or run programs, I have installed error: I have no permission for the error file or path. How to deepen access to these files and progr