Anchor a text

Hi
     I am writing a plugin and stuck at putting an anchor to text at different points in indesign document.
am using vc++.
i see many interfaces related to anchored object like IAnchoedObjectInsertData,IAnchoedObjectSuite,IAnchoedObjectData ...
but i need some interface to locate the point/index of text in a text frame, where i can insert anchored object and use these anchor interfaces.
plese help.

Trevor,
Check the Wrap Inspector, with your Chart Selected, and see if your Chart is Inline or Floating. What you want is Inline. Also, turn on the View > Show Invisibles option so you can see the exact Insertion Point of the Chart. The Chart Insertion Point is marked by vertical line with a large dot on top. Content added before the Insertion Point should cause the Chart to move down.
Regards,
Jerry

Similar Messages

  • Converting a Quark Document with Pictures Anchored to Text

    I've been working on this roster book for a golf club for some 8 years now. It was created in QuarkXpress, and has members' photos anchored to their listings, so it's easy to be updating this book every year.
    I'd like to move this project into ID, but the test I ran (using Q2ID) was not satisfactory, 'cause the pictures were not anchored to the text anymore...
    Is there a way to actually correct this, or am I stuck with Quark when updating the book again?...
    ...Thanks....

    Is it that easy?.... From what I know, I have to select the picture with the Selection tool, copy it, move to the Text tool, position the cursor at the beginning of the member-listing, where I want the photo to anchor, and hit Paste... Then I have to select the Selection too again and move it down so it lines up with the first line of the listing...  That's quite a job, when I have more than 600 listings, 80% of which have a picture, or two....
    If I can't have the Quark file convert to ID globally, keeping all those hundreds of photos anchored, I'll probably revert to performing the annual updates back in Quark...

  • Can you anchor threaded text to different frames?

    I work with a lot of catalogs, and one thing that I want to know if I can do is to take a giant text document, drop it into several threaded text frames, and make each paragraph start at the beginning of a different text frame withing hitting enter a million times, and without breaking the thread.

    You're welome.

  • At my wits end: Placing anchored object inline with text & wrap

    Granted I never learned InDesign the way I should.  Once upon a time I fared well with Aldus Pagemaker.  But I've just spent the last two hours trying to resolve a massive gap in my knowledge and I can't do it.  I'm exasperated and desperate for help.
    What I want to do:  I have a tech manual with lots of text and need to place graphic objects in a way that the text will wrap around the object and if I need to edit the text, the graphic will move with where I inserted the graphic.
    What happens:
    1.  I have a text frame with text.  I place the cursor at the beginning of the paragraph and click File> Place, thereafter choosing a graphic.
    2.  Using the selection tool, I click the graphic and then click the icon "wrap around bounding box".
    3.  The text shifts a teeny bit but does not wrap around the object.
    4.  Object is, however, inline/anchored, with text.
    OR
    1.  With nothing selected I click File> Place, thereafter choosing  a graphic.
    2.  I place the graphic on the lower part of the page over a blank space.
    3.  I move the graphic over the text and then click the icon "wrap around bounding box".
    4.  The text flows but when I edit the text, it does not flow around the graphic.
    Conclusion:
    I am retarded.  I even went through Lynda's example here:  http://www.adobe.com/designcenter/video_workshop/?id=vid0073   I was able to place my object in her document and watch the text flow around the text wrapped graphic.
    I read the help docs (I'm a big fan of reading).
    The only thing I can think of is I've set my text box up wrong or I have no idea.  I'm so frustrated I am seriously almost in tears.
    My example document (I'm under an NDA and can't release my original document, but I duplicated what I've done in the previous one) is here for anyone who can tell me what I've done wrong.  Thank you kindly.
    http://www.xandria.ca/test01.indd

    Alrighty, this is bizarre.  I couldn't leave well enough alone and I'm still trying to hammer this one out.  But I just followed my first method described in the original message and then...
    I clicked and dragged the edge of my graphic and the text began to flow around it and it moves with the text.
    What on earth?
    While I can do this for each image, I'd rather not.  What am I still doing wrong, although I seem to have a half baked workaround.
    Cheers.

  • How to copy/paste anchor text box to its anchor point in text and delete all empty anchors?

    hi all
    i have a document of few pages but one story. The right column is the main text box and on many places anchored text boxes are placed which appeared on the left column as shown below.
    i want text of each anchor-text-box to be cut from its place and paste at its insertion/anchor point and delete all empty anchored boxes.
    I am trying since morning but i unable to reach anchor object reference. Any help on how to start with will be helpful.
    virender

    Ok, let's say you have one main text box (not anchored) and three text boxes that are anchored to text within it. The first one is anchored with text, the second one is unanchored, and the third one is empty (I'm not going to get into inline anchoring vs. custom anchoring since you didn't bring it up in your post).
    We cycle through the items on the page:
    function main(){
      var myDoc = app.activeDocument;
      var myPages = myDoc.pages.everyItem().getElements();
      for (var i = 0; i < myPages.length; i++){
        var myPage = myPages[i];
        //Checks that the page is valid, and that it is not a master page. If either is true, skips to the next page.
        if (myPage.isValid == false) continue;
        if (myPage.parent instanceof MasterSpread) continue;
        var myItems = myPage.allPageItems;
        for (var j = 0; j < myItems.length; j++){
          //Current item.
          var myItem = myItems[j];
          //If myItem doesn't have a Character parent, it is not anchored.
          //The first and third text frames would fail this test.
          if (!(myItem.parent instanceof Character)) continue;
          //We only care about text frames.
          if (!(myItem instanceof TextFrame)) continue;
          //I think the only way this would happen would be if you had an image or
          //something else unexpected within the frame. I check for it so no content
          //is inadvertently lost.
          else if (myItem.texts.length > 1) continue;
          //If we're still in this iteration of the loop, all qualifications are met.
          //Flatten the text frame.
          //I don't use layers that often so, to me, flatten makes sense. You may want
          //to use a different term if there's a chance for confusion.
          flattenItem(myItem);
    function flattenItem(funcItem)
         //Hold onto the anchor character.
        var myParent = funcItem.parent;
         //Duplicate the text from within the frame so that it appears right after the anchor.
         //There may be other methods, but this works for me. I try to avoid copy/paste
         //so as not to deal with any clipboard mishaps. I added a check in case of empties.
         if (funcItem.texts.length > 0){funcItem.texts[0].duplicate(LocationOptions.AFTER, myParent.insertionPoints[0]);}
         //Replace the anchor character itself with a space (or whatever) which also
         //deletes the text frame it was anchoring.
        myParent.contents = " ";
    I guess the takeaway might be that you're not looking at the main text frame and then checking to see if anything is anchored to it. You're looking at each text frame and figuring out if it is anchored. That's my approach, anyway.

  • Anchored objects and text wrap

    HI, I have some large images that I want to anchor to the top of the page extending to the off sides to the spine. I've tried and tried with the 0 space paragraph, etc to get the text to wrap properly. It's usually just a fragment of the last sentence prior to the image that runs under the image (and there is no alert that it IS under there!
    Using CS5.5
    Thoughts?

    The issue is that the images are always supposed to be hugging the top or bottom and outer margins. when the image is at the top or say is a 2 page spread aligning at the top margin how can I anchor it to a paragraph content?  The big issue is when the  line wrap only partially and there is no visual cue that something is wrong.  I have tons of images in this multi doc ms that need to hang around the attending subject matter BUT with a majority of the images starting at the top margin, it is dangerous to anchor them becasue of the mis-wrap. Ha, I even thought I could put a non anchored empty text frame under the image.  That fixes the flow under the icture issue - until the image moves.
    Thoughts?   Workarounds?

  • Threaded Anchored Text Boxes Causing Problems (Crashing)

    I have a set of three anchored styled text boxes inside my primary text flow. Indesign seemed to allow this, but is now having trouble after I resized the Primary text frame and pinched these anchored boxes. The documnet is now in overset after the set of three and indesign is crashing whenever I touch them. It's holding my document hostage.
    I've tried: Pasting the whole document into a larger formatt file, or Cutting out the set of three and they all shut down the program.
    Has anyone else had this problem or am I missing something else?

    Have you tried exporting to IDML and open it again?

  • Anchor text to object feature

    I would like to see a feature where I can anchor text to an object, not just anchor an object to a text frame.
    This would be useful for doing callouts in illustrations. I have been able to anchor callout pointers to a text frame, but that is awkward. When I change the text, I have to do additional editing. If I have a pointer object and I can anchor a text frame to it, I could just change the text of the callout.
    RPP

    I tried grouping. It still requires some additional work if text changes. For doing callouts, it would just be easier to be able to anchor the text frame to the pointer graphic.
    My work around is simple enough. I have a pointer graphic and I have a text frame. I move one, then move the other.
    Here's the point really. If you can have an "anchor" feature, where one thing is anchored to another, why limit it to just anchoring object to text. why not allow anchoring of a text frame to an object?
    Thanks for you comments
    RPP

  • Creating TOC: order of anchored objects

    Hey scripting experts,
    i have a question creating an automated table of contents.
    The problem is, that I am using anchored objects (text) in a text frame/story. Let's assume there is a text frame, starting with the anchor of an anchored object that contains the "headline # 1" and is placed e.g. on the top of the page. The anchor is followed by "headline #2" and "headline #3" (both simple text, no anchored object).
    When generating toc, the order of the headlines will not be read as desired. The anchored object unfortunately is not added at first, but at the end. So the generated order is: #2, #3, #1. I would prefer #1, #2, #3.
    Do you think, there might be a suitable (and scriptable) way to teach InDesign, to count an anchored object according to the position of the corresponding anchor in the text? Yes? I would be glad for any advice!
    Thank you!
    Jan

    Hi Peter,
    thank you very much for your quick and technically versatile reply! Unfortunately my answer reaches you slightly late – due to Easter/holidays (hopefully you spend them relaxed ...).
    Nevertheless i am really glad having received your hint. At the moment i am still a bloody beginner in scripting/xml-rules, but trying hard to forge ahead. Maybe aming for a specific target causes progress ... You signalized me there probably is a solution, so with your hint at the back of my mind, i will start practicing now.
    Many thanks and best regards
    Jan

  • Sloooowwwww text entry in InDesign CS5

    I've got a truly bizarre behavior that is driving me crazy!  About midway through a document, text editing becomes painfully slow.  I can type a sentence and it takes several seconds for the cursor to catch up.  This happens whether I edit in place, or type in Story Editor.
    Here is where it gets very bizarre.  In any text BEFORE this point in the document, text entry and editing is fast, clean, and efficient.  The point in the document where the change from fast to slow takes place stays the same, REGARDLESS OF WHETHER I DELETE SOME TEXT.  In other words, I've found the precise paragraph where the slow typing starts.  If I delete that paragraph, then the NEXT paragraph shifts up and becomes the start of slow editing.  Paragraphs before and after this point are all styled with the same body paragraph style, so it has nothing to do with the style itself.  In fact ANY style below the "magical point" in the document has very slow typing.  Any style or paragraph above this point types and edits fine.  It almost seems like this magical point happens after a certain number of characters in the document.  If I delete text above this point, the magical point shifts further down the document text.
    Thinking I had a corrupted file, I exported the entire file as IDML (InDesign Markup) and reimported it.  I get THE SAME BEHAVIOR IN EXACTLY THE SAME SPOT.  The file is about 11 pages long and consists of one story that runs through threaded text frames.  There are about 5 images that have been anchored to text.  (But not near the "magical point" where text editing becomes as slow as molasses.)
    I've tried making new documents, changing styles, loading different master pages, deleting the images, deleting the master page, etc. and nothing affects this issue.  And yet I can create a new document, fill it with a hundred pages of placeholder text and I don't get this behavior anywhere in the document.
    Has anyone else experienced something similar??  It's MADDENING!!

    This is definitely an issue in the Windows environment that has absolutely no impact in a Mac environment. I was just introduced to it, and I'm really scratching my head.  I do most of my layout on a really nice Intel Mac using ID CS5, and I'm currently working on a huge project with multiple team members working on a variety of computers. I was unaware until yesterday that one of the team members who is working on a Windows 7 laptop was having problems making text edits in documents that work just fine on my Mac. There was a severe lag when typing. She could go get a coffee while waiting for one simple typed sentence to appear on the screen. We opened up system resources and everything is maxing out while text is being typed, CPU, memory, network. It's a real stumper. This is not a simple machine, it was purchased to be a graphic design computer and has really good specs, but just to make sure it wasn't the computer, I tried it on two other PCs. One is my laptop that I freelance on and the other is a fellow designer's machine that has absolutely amazing specs (actually better than my Mac), both running Windows 7.  On all three computers I have the same typing lag, though I can reduce the lag some by turning off everything that saps ID performance (auto preflight, screen redraw, dynamic spelling, balance columns, etc.).  The files are on a server, so I even tried copying them to the local harddrive and severing link and InCopy connections. I've tried turning off balance columns and still the lag.  The lag is most prominent in a fairly complex table and I've noticed it is worse when editing text that is on a 10 percent black background. 
    I can provide a file to play with if anyone wants to see the behavior. I can reproduce it on any computer with a Windows environment (both CS5 and CS5.5).  I would appreciate a fix either in the way my documents are created or for the app because I'm doing hundreds of these documents for the next couple years and this lag is a severe problem in our workflow.

  • Un Anchoring objects in Indesign CS2 Using Apple script

    Hi all,
    I need to Un achor the object. I have the script which will un anchor the Text Frames but in case of
    Rectangle i'm not able to unachor. My script will find out the Anchrored Text Frames and place its
    contents to its position and then delete the frames. I can find out the Anchored Rectangles but i
    cannot get its contents. Can anyone help me out to do this?
    Thanks,
    Jacintha

    Hi,
    I can select the page item ,If i ask for page items and its parent. but not getting its contents.
    -- aframe is text frames in document
    set Conts to paragraphs of page item i of aframe
    set contents of first insertion point of parent of page item i to Conts
    I need to get the contents of anchoring objects and place it in its position and then delete the anchoring object. Tried working on above code but not able to get its contents. Any solution?

  • TEXT-DRIVEN WORKFLOW FOR NEWSPAPER

    We're a small community newspaper thinking about switching to InCopy (currently using NewsEdit)
    All reporters, photographers, designers work in the same office. Most stories are written before the pages are layed out based on the amount of advertising so we would be using a text-driven workflow. I've downloaded a trial version of InCopy CS4 and I'm trying to get a feel for how everything will work between InCopy and InDesign.
    Currently the reporters type their stories in templates that show the copy flowing in columns. When these files are brought into InDesign the columns stay and the headers (which are attached) are in a separate text box. The reporters can also attached cutlines to their photos. The designer then just has to import the story and photo into InDesign and resize the two boxes (header and story) and the photo and cutline to fit the space available.
    The only way I can find to have 2 text boxes in InCopy is to make an InDesign document and anchor 2 text boxes (one of which is divided into columns) to the Master Text Frame. I then export this as an .incx file, load my stylesheets and save it as a template file.
    The reporter then opens the template and inputs the story and header in the appropriate boxes and saves it as an .incx file.
    I (the designer) then opens the page layout and places the story. In order to resize anything the story has to be checked out. Then because the boxes are anchored, I have to go to Anchored Object menu, change the Options and then Release. I have to do the same with the photos and cutline.
    If I haven't put you to sleep yet, here's my question.
    Am I totally out in left field or am I on the right track as to how this should work? Is there a better way to make this work.
    Any editorial changes are made on the page by the designer and there's only ever one reporter working on a story, so I think the checking in and out of stories might not pertain to us a lot except for when resizing them when they're on the page.
    Also when I draw a text box for a pull quote on top of a story the only way I can change the runaround is to go to Anchored Object menu and release the story text.
    Any help or suggestions would be GREATLY appreciated.
    Barb

    Barbara, I'm sorry but no, you can't have 2 text frames in a native InCopy document. And in the one frame you have to work with, there is no way to divvy it up into columns.
    It sounds like you might need one of the CMS's built on top of InDesign and InCopy, like Smart Connection Pro/Enterprise or K4. These systems *do* all you to create multiple-framed "article" templates for the InCopy users, along with other features that the stock IC/ID workflow doesn't. But the learning curve is fairly steep (especially in the beginning) and the cost starts at $20K and goes up from there, not including the cost of ID and IC themselves. Quite a difference compared to the $249 per editorial seat cost of a stock IC/ID workflow.
    In that stock workflow -- which most of my clients use, including community newspapers -- editors write everything in the single frame, and yes, the designers then cut and paste as necessary.
    A somewhat awkward but doable workaround is that the editors could write the headline on page 1 of the INCX file and then enter a Frame Break from the Type > Insert Break Character menu. InCopy would automatically generate a second page (to create a threaded frame) and put their cursor there. The editors would write the body copy in that frame, or however you want to work it.
    Then the designers would have a page set up in ID with a small frame for the headline that's threaded to a multicolumned frame for the body. They'd place the INCX file into the first frame, and it would automatically flow into the 2 frames correctly (assuming the headline fits inside the headline frame, if not, they edit it/format it to fit).
    One of the main benefits of the IC/ID workflow is that the editors can see and edit their text within the context of the design, the layout, instead of marking up paper proofs for the designers to enter. Or, it allows the designers to create pages in ID (with empty text frames for heads, body, sidebars, cutlines etc.) for the editors to fill in with their text from the start.
    It sounds like you're not looking for this. You're mainly interested in giving the editors a head start in formatting and fitting text without the layout at all. This is a lesser feature of the stock IC/ID workflow. It is most valuable when it's replacing Word as the start of the process. But it sounds like it's no match for what you're able to do with NewsEdit. ;-(
    I've had other clients ask me how to create multi-framed templates for the editors to use. I wrote a long article about in my InCopyFlow e-zine, which you can read as a post on my InCopySecrets.com blog here:
    http://incopysecrets.com/working-with-layout-templates.php
    Maybe that'll help show you what's possible?
    AM

  • [CS2] [JS] Resize anchored object...

    Good morning:
    I need help figuring out how to resize different objects that are anchored in text. They do have a script label on them.
    For example I have an inline text box with the script label "gadget" that needs to be resized from 1 inch to 2 inches.
    Is there away to do this by way of a script?
    Thanks in advance!
    Theresa

    Hi Teresa,
    This is a very basic example: it adds 1 inch to the width and height of the inline text frame with "gadget" label (I assume that it may occur only once in each story and measurements are set to inches). I wrote this on CS3 — don't have CS2 any more.
    var myDoc = app.activeDocument;
    var myStories = myDoc.stories;
    for (i = 0; i < myStories.length; i++) {
        var myTextFrame = myStories[i].textFrames.item("gadget");
            if (myTextFrame != null) {
            var myGb = myTextFrame.geometricBounds;
            var myNewGb = [myGb[0], myGb[1], myGb[2]+1, myGb[3]+1];
            myTextFrame.geometricBounds = myNewGb;
    Kasyan

  • Remove multiple anchored objects using find function?

    Hello, there are hundreds of anchored objects (text boxes) I need to remove from a document; can I do this using the find/change function? I have been able to find them by choosing "object" then specifying it's custom positioned text box, but I can't see any way of deleting them all at once; all I can do is change all their properties at once.

    Hi Martin,
    Open the find change diologue box,
    Click Grep
    type in the Find What field:   ~a    (thats to find the anchor object marker)
    then leave change to blank
    click change all
    and... viola!
    All gone. (just make sure search document is selected etc.)
    Grant

  • Converting textframes into anchored objects

    Hi All,
    I'm generating the ePub files from the InDesign and found that some of my textframes which are in separate stories are captured at the end of the files, but I'd like to have them at the exact position. But when those frames are capturing manually as anchored objects, it looks fine. Please confirm how this can be achieved either scripting or other method?
    Thanks,
    Praveen

    @Praveen – the first question you have to answer to yourself is:
    is there a general prescribe where to anchor exactly a single text frame in the main story?
    If you cannot say that in a general, logical way, you cannot automate this task.
    Or you have to programme a lot of exceptions, that it would be easier to do it manually.
    For InDesign CS5.5 and above it is very easy to anchor a text frame using the UI with two clicks per instance. Scripting those is a more complex task.
    1. You have to identify separate text frames (you can only anchor single, non-threaded ones!).
    2. Perhaps you have to identify a geometrical relation between the single text frame and the main story in form of a single insertion point at the beginning or end of a paragraph…).
    3. And you have to define some properties for the anchor behaviour of the stray text frame you want to anchor.
    How many stray text frames do you have?
    How many documents where you want to anchor those?
    Describe the projected time for the task if done in the UI…
    Is it reliable using a script at all?
    Taking into account that writing (20%) and testing (80%) a script for this task would take some hours to perhaps a day… Plus the time for analyzing the original documents (special cases may be a hurdle one cannot overcome).
    Uwe

Maybe you are looking for

  • Itunes wont launch after update

    After updating Itunes the application will not launch

  • Issue: songs appear out of "album order" on iPad

    I am using current version of iTunes on IOS7.03 on my iPad 2.  iTunes library (v11.1.3) is on Mac w/OS 10.9. All is fine on the Mac; issue on this iPad. Songs within each album are no longer in "album order" (1,2,3,4 etc) HOW do I correct this?

  • How to change Marketplace Language. I don't want M...

    When I 1st use Lumia 800. the Marketplace language I saw is English.After I sign in Window Live ID and select the marketplace country to Malaysia .The marketplace language change to Malay. Who know how to change back. How to change Marketplace Langua

  • WRT54GS w/Windows Vista Slow Download

    I have a WRT54GS wireless router with 2 dell laptops connected. One laptop runs fine, the other (brand new Dell D420 running Windows Vista Business 32bit) has EXTREMLY slow downloads. I have covered all the bases I can think of: - replaced Dell Wirel

  • DVD writer dvd600s for Mac: looking for a driver

    The dvd600s DVD writer says it can be used with Mac, but I'm not finding any associated driver, either on the HP Website or on the web generally. Help!