Jump to an anchor text to the DPS

Hello

I believe that I correctly added an anchor of the text on a page in an article in my DPS folio. However, create a button to access this anchor text does not work when I test in Adobe Content Viewer. Any suggestion as to what I'm doing wrong?

Thanks in advance.

Text anchors are not supported in DPS.

Tags: Digital Publishing Suite

Similar Questions

  • Center anchor text by the expression

    Hello! This is my first post, so I'm sorry if I've caused a lot of facepalm.

    I wanted to center the anchor point of the text in an expression. What I did:

    X = this.sourceRectAtTime () .width/2;

    Y = this.sourceRectAtTime () .height/2;

    [X, Y]

    It almost does the job... However, there is a small gap. I tried to understand, and it seems that (0,0) of the anchor point does not correspond to the lower left corner, but instead has a small shift, usually less than 5. In addition, this shift seems to change depending on the font and text.

    How can I make an expression that tackling this problem and place the anchor point in the center of the text dead?

    Of course you can use monospaced fonts or design your own and simply add and subtract values, but disappeared completely, you'll always have situations where the visual cenrter has nothing to do with the calculated actual Center. Others you can find info without end about how the various parameters of the fonts and their relationships each n how to calculate them, but it is far from trivial, then I would advise against. In more than 15 years using AE I have never had the need nor the desire to enter into that kind of thing. It is much more important to find good fonts in the first instance, both in technical and aesthetic sense.

    Mylenium

  • CS5: Hyperlink to anchor text in the character style?

    Is it possible to script the following:

    A text has several occurrences of the same string, for example "A10". One is marked with a character style "Anchor" and others are marked by a character style "link." The idea is to create anchors text style "Anchor" then find all occurrences of the character 'Link' style and create a hyperlink to the corresponding anchor.

    I managed to find a script that creates a character style "Anchor" text anchors Can anyone offer suggestions on how to make script creating the links?

    Written by Kasyan Servetsky

    March 13, 2011

    // http://www.Kasyan.HO.com.UA

    / / e-mail: [email protected]

    //======================================================================================== =================================

    If (app.documents.length == 0) ErrorExit ("Please open a document and try again.");

    const gScriptName = "create anchor text."

    const gScriptVersion = "1.0";

    gDoc var = app.activeDocument;

    If (! gDoc.characterStyles.item("Anchor").isValid) ErrorExit ("Character style \"Anchor\"n'existe No.");

    CreateDestinations();

    //======================================================== FUNCTIONS  =====================================================

    function CreateDestinations() {}

    app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;

    app.findGrepPreferences.findWhat = '. '. + » ;

    app.findGrepPreferences.appliedCharacterStyle = gDoc.characterStyles.item ("Anchor");

    var found = gDoc.findGrep ();

    var destCounter = 0;

    for (var j = finds.length - 1; j > = 0; j-) {}

    var found = found [j];

    try {}

    If (! gDoc.hyperlinkTextDestinations.itemByName (found.contents) .isValid) {}

    var hypTextDest = gDoc.hyperlinkTextDestinations.add (found);

    hypTextDest.name = found.contents;

    destCounter ++;

    }

    }

    {catch (e)}

    }

    If (destCounter == 0) {}

    Alert ("no anchor text were created.", gScriptName + "-" + gScriptVersion);

    }

    Else if (destCounter == 1) {}

    Alert ("a text anchor is created.", gScriptName + "-" + gScriptVersion);

    }

    ElseIf (destCounter > 1) {}

    Alert (destCounter "text anchors have been created.", gScriptName + "-" + gScriptVersion);

    }

    }

    //---------------------------------------------------------------------------------------- ----------------------------------------------------------------

    function ErrorExit (error, icon) {}

    warning (error, gScriptName + "-" + gScriptVersion, icon);

    Exit();

    }

    //---------------------------------------------------------------------------------------- ----------------------------------------------------------------

    Hello

    The path is:

    create a hyperlinkTextDestination;

    create a hyperlinkTextSources;

    Create hyperlinks using a single destination and sources;

    so:

    // to create hyperlinks alike:    one destination==>many sources
    // destination is the 1st occurrence of text with charStyle "anchor" applied
    // sources are each occurrences of text with charStyle "link" applied
    
    var mDoc = app.activeDocument;
    
    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.appliedCharacterStyle = mDoc.characterStyles.item("anchor");
    
    var
         mAnchor = mDoc.findText()[0],
         mDest;
    
    if (mAnchor) mDest = mDoc.hyperlinkTextDestinations.add(mAnchor,{name: mAnchor.words[0].contents});
    else {alert ("no anchor found"); exit(); }
    
    app.findTextPreferences.appliedCharacterStyle = mDoc.characterStyles.item("link");
    
    var
         mSource = mDoc.findText(),
         len = mSource.length,
         currSource, currHyper;
    
    if (!len) {alert ("no link found"); exit(); }
    
    while (len-->0) {
         currSource = mDoc.hyperlinkTextSources.add(mSource[len],{name: "sourceLink_" + len});
         currHyper = mDoc.hyperlinks.add(currSource, mDest, {name: "mHyperlink_" + mDest.name + "_" + len});
         }
    
    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    

    Jarek

  • Anchor text does not appear in the Panel "new hyperlink.

    I make an interactive PDF where I did text anchors to headings throughout the document. But when I try to create my shortcuts by plasing a hyperlink to them, the 'anchor text' field is empty.

    Skjermbilde 2016-07-13 kl. 12.51.47.pngSkjermbilde 2016-07-13 kl. 12.53.02.png

    The obvious errors?

    Make sure you create the anchor text in the hyperlink Panel > new hyperlink destination > type: anchor text

  • How to wrap text around the anchored object (image)

    I quickly started to get account that I am not the mental giant I had previously thought!

    Having recently made the switch to InDesign, I fight to pick up some of the different methodologies, and more still, the different jargon.

    I read the section guide from Adobe on this request, and I feel none the wiser is. I'm sorry to you guys with what is probably a very trivial question for users over three years, but let's go even of evil.

    I am trying to anchor the image object in a block of text, with the image of the text wrapping. While it seems to be in my ability to insert the object and to wrap the text, I have real problems to anchor this object in the right place.

    What I'm trying to look like this: -.

    Screen Shot 2015-12-31 at 1.14.52 PM.png

    Can anyone please help me, a simple "idjit" way how to do this?

    Any help is greatly appreciated.

    See you soon... Scotty

    If the image is placed on the page:

    Drag the symbol at the top right in a paragraph before that the first line is ignored when the text is wrapped.

    I suggest to save all the settings (wrapping text, the position of an object of anchroed, etc.) in the Styles of an object as it makes it easier to do global settings later.

  • create the frame anchor text online

    Hello!

    I am trying to create a text block anchored from the results of a search. If I create the framework anchored among a selection it works no problem, but when I do it according to the results of a grep I get error "the text can be moved to its current location. Do you have ideas about how to solve that?

    As a side question... when I create an object through script style, the text always block has a border... Why is this? (I created the style with another script)

    doc = app.activeDocument;
    app.findGrepPreferences = app.changeGrepPreferences = null;  
    app.findGrepPreferences.findWhat = "~6";  
    var myFinds = doc.findGrep();  
    for (i = myFinds.length; i > 0; i--){
    var os = doc.objectStyles.item ("Section");
    var new_note = myFinds[0].insertionPoints[0].textFrames.add ({appliedObjectStyle: os, label: 'Section'});
    var n = myFinds[0].texts[0].move (LocationOptions.atBeginning, new_note.insertionPoints[0]);
    n.applyParagraphStyle (os.appliedParagraphStyle, false)
    new_note.fit (FitOptions.frameToContent);
    }
    

    Thank you!
    Christopher

    test.png

    Once you insert the object anchored pointers towards the passage of the text. So, you will need to compensate for this. A bit like this:

    ip0 var = myFinds [0] .texts [0] .insertionPoints [0] .index + 1,.

    IP1 = myFinds [0] .texts [0] .insertionPoints [-1] .index + 1;

    ...

    ...

    var n = myFinds [0].parentStory.insertionPoints.itemByRange (ip0, ip1) .texts [0] .move (LocationOptions.atBeginning, new_note.insertionPoints [0]);

    Legal notice, sinppet code written without coffee, will very probably need tweaking.

    Second question,

    Make sure that the style of the object has enableStroke set to true and strokeWeight set to 0

  • Find and move text within the existing framework of anchored

    I have a great story that spans several pages text. It contains a number of paragraphs that have the following content:

    [empty anchor for an existing character, but the anchor text frame] [important book that contains NO tab] [TAB] [intermediate text containing NO tab] [TAB] [end text containing NO tab] [empty anchor for an another existing character, but the block of anchor text]

    I need a script (Javascript, preferably) that:

    1. find a paragraph that starts with a character of anchor;

    2. find and cut the main text between the character of the anchor and the first TAB after

    3. Paste the main text in text anchored at the beginning of the paragraph;

    4. in the same paragraph, find the final text between the second (and last) TAB and the character of the second (and last) anchor at the end of the paragraph;

    5. glue the final text under text anchored at the end of the paragraph;

    6. repeat 1. -5. for the paragraph all in the same article that starts with a character of the anchor.


    I'm a JS programmer advanced, but new scripts CreativeSuite. I just understood how to search for some text, and I know that the 'parent' of an anchored object is a 'character' - but now to I access the contents of an object anchored to its parent character?


    Even better:

    function movetoanchored(find) {
      var myText = find.characters.itemByRange(1, -1).texts[0];
      var myFrame = find.characters[0].textFrames[0];
      myText.move(LocationOptions.AT_BEGINNING, myFrame);
    };
    
    function main() {
      var myStory = app.selection[0].parentStory;
      app.findGrepPreferences = app.changeGrepPreferences = null;
      app.findGrepPreferences.findWhat = "^~a\\S+";
      var myFinds = myStory.findGrep(true);
      for (i = 0; i < myFinds.length; i++) movetoanchored(myFinds[i]);
      Window.alert(myFinds.length + " moves performed");
    };
    
    app.doScript(main, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "MoveToAnchored");
    
  • How to copy/paste the text box anchor to its anchor text and remove all checkpoints empty?

    Hi all

    I have a document of a few pages, but a story. The right column is the area of main text and on many places, anchored text boxes are placed which appears on the left column, as shown below.

    I want the text of each text box anchor to cut of his place and sticking to its point of insertion/anchor and remove all of the empty boxes of anchored.

    I'm trying since this morning but I was able to get the anchor object reference. Any help on how to start with will be useful.

    Marie rosine

    anchor_box.png

    OK, let's say you have a main text (not rooted) box and three text boxes that are anchored to the text it contains. One is anchored with text, the second is not anchored and the third argument is empty (I won't get into the anchor vs custom anchor line given that you mention in your message).

    Scroll us 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 is perhaps you aren't looking at the main text block and then check if anything it is anchored. You are watching each text block and find out if it is anchored. That's my approach, anyway.

  • out the anchor text block and copy its contents

    Hi all

    I have a script that will be able to anchor to InDesign text block and it works well. Now my problem is that I released that anchored text frames and then copy its contents the same position where the text block was at anchor.

    Here's what I do:

    1. find and block of text of a document (using the find object, anchored by its applied object style).

    2. release the anchored object found.

    3 copy its contents the same position where it was anchored.

    For 1 and 2 rep, I maybe able to do but point 3 I have no idea.

    Hope someone can lend me the time to solve this problem.

    Thanks in advance for any help.

    -elmer

    then, instead of myFrame.releaseAnchoredObject (); use myFrame.remove ();

  • Page number variable based on the anchor text &amp; SEO numbered list

    I looked and looked, not only in Adobe help centers but also just in Google, and I can simply find an answer one way or another to my questions!

    I would like to do 2 things:

    1 use a variable to refer to that page more information can be found on a certain subject (i.e. for more information, please see page #.), even if the page number will no doubt change I have continue to work on this project and eventually build my book from the various documents that I created.  I can insert a kind of marker or anchor text or whatever it is I need the information that I am referencing, as long as it is not visible, of course.  I would just have a dynamic reference, so I don't have to go back through and try to check my page references are all correct.  The variable of the current Page will help me not in this case.

    2. I would also like to refer to numbered tables I have; they are currently configured as being numbered by a custom paragraph style which is mode number, 'continue previous number "; Another situation where the table numbers will change because I continue to work on this book and I want a dynamic solution.  If I need to insert a variable to calculate the numbers in the table, rather than using the paragraph numbering style, it is very good; I prefer to do a little more work now, so that I can be sure my references are accurate, when this is said and done!

    Thanks in advance for any help you can give!

    Cross references.

  • The anchored object could not wrap the text of the marker line.

    I need some time to provision the photo to be next to the text like this:

    Text Wrap in Anchored Objects.png

    But the problem is in the first line (the line where the anchor marker is available as the first character). Because this line is not affected by the skin of the photo.

    I know that's not a bug, because it's could ' t be achieved logically, because the photo may affect the anchor marker and then the anchor marker can affect the picture. Can then take over loop.

    But this is not the case when the anchor marker is the first character of the line.

    Is it possible to adjust this layout with different technical and somehow if we can change the width of the frame without having to manually readjust.

    Anchor the image in the previous line. If necessary, you can add an empty paragraph before holding the anchor and set it to show solidarity. Set the line spacing for this empty paragraph to 0. So as not to break the line at the top of a framework, however, frame options must be on the leader to the first base line.

  • Cut and paste the text of the anchored text box?

    CS4, Mac G5, Leopard.

    I've recently been investigating scripts in InDesign and I have a problem to solve that exceeds my, base, understand.

    I used Rorohiko "Lightning Brain text exporter" to extract text (rtf) of a book.

    The text contains countless anchor text blocks. I would like to be able to select all the text in the block of text anchored, cut and paste it into the document where the anchor element is referenced, and then remove the anchor text (now empty) block.

    Any help would be accepted with gratitude

    Thanks Steve

    A full javascript (from the previous post on the forum):

    myDocument var = app.activeDocument;

    Inlines (myDocument);

    function inlines (doc) {}
    var doc.stories = St;
    for (var i = doc.stories.length - 1; I > - 1; i--) {}
    While (st [i].textFrames.length > 0) {}
    var ix = st [i] .textFrames [-1].parent.index;
    St [i] .textFrames [-1] .texts [0] .move (LocationOptions.after, st [i] .insertionPoints [ix]);
    St [i] .textFrames [-1] .locked = false;
    St [i] .textFrames [-1]. Remove();
    }
    }
    }

  • Why my cursor jumps around to various places in the text I type on my PC?

    This happens when I tap on a Web site, text, forms, forums, and
    also by e-mail. It is random. No particular trend.

    Someone at a party said it was a Microsoft program and turn off, but I
    don't remember that one, and when I tried to stop programs
    on the task Mgr, it did not help.

    It is a relatively new HP PC (13 months) and up until about a month, no problem
    with Windows except for the usual questions '7 '.

    Whenever this happens (4 times in this area), I have to click to start typing the text in the appropriate again place.

    Very annoying and time consuming.

    Hi Linda,.

    Here is that a work around you can try.

    1. go to Start , then on Panel.

    2. in the Control Panel window, in the Find box, type mouse and click mouse.

    3. in the options of the pointer tab, uncheck the "hide the pointer when typing"

    For more information: http://windows.microsoft.com/en-US/windows7/Change-mouse-settings

    I hope this helps. If you have any questions, please let us know.

  • Can't get the icon and text for the items on the bar, sucking tabs of tools! cannot arrange icons I liked firefox 28 better for customization, but it crashes... NOT HAPPY!

    There is no space and firefox said I can put icons on the tool bar anywhere... it jumps at the end and I can't get anything in the middle of the page, the icons are small, and there is no option to enlarge them and add text to the icon. the tabs that look like a file folder suck. There is no option to add a toolbar or put tabs on top overall is 10 steps backward instead of an improvement... you had something very friendly with 28 and you're just screwed I will seek another browser

    Hi Gary, you come earlier to the new UI design? There is an old article on how to use an add-on to restyle it as the interface classic Firefox 4-28, or even earlier. If you do not have another browser that makes you happy, please take a look: How to make the new look of Firefox as the old Firefox.

    If you have no patience for the configuration of an add-on, the suite Seamonkey maybe worth a visit, as I believe it can probably import your Firefox data: http://www.seamonkey-project.org/

  • Rental menu bar dropdown displays is more suggested url text, only the favicons

    The drop down menu no longer appears visible text of the bookmark or visit history. Display the favicons and field background changes color on mouse / sensitive and blind clik (based on the favicon) will launch the site.

    Could be a setting somewhere jumped the track and set the display of text on background of the field.

    This problem may be caused by an extension (Delicious) that is not working properly.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do not click on the reset button on the start safe mode window or make changes.

Maybe you are looking for

  • Still 2 WT8-B-102 - loading and using a mouse at the same time

    Hello I have a Tablet yet 2 WT8-B-102. Anyone know, please, what would happen if I tried to load / use on current electric at the same time that the use of an external mouse? I have an adapter that plugs into the micro-usb port and has two connectors

  • Satellite M30x-211 - BSOD if I turn on WLAN

    HelloI installed the recovery CD and Windows XP works fine. But if I turn on the WLAN I get a blue screen of Windows:IRQL_NOT_LESS_OR_Equal If the laptop Iboot and the WIFI is on the laptop restarts every time. If I boot in network economy mode every

  • NI_report.lvclass of report generation

    I just upgraded from LV8.5 to LV2009 and when I tried to upgrade an existing application from LV8.5 to LV2009 I found that the improved report generator toolkit uses the NI_report.lvclass data type to identify existing reports instead of a reference.

  • In Itunes and adobe reader all the latest versions have problems with the Info button.

    in Itunes no show buttons or the info for them, everything els is here, so the info botton if you move the cursor, if you can't find where they might be. Drive has the same problem but only in printing windo. Using Vista sp2 on a toshiba.

  • No sound when you try to listen to talksport don't live

    I can hear previous shows no problem listening to any music or internet stations etc... worked well so I closed while I did other things and when the reopening to listen still nothing tried the system restore - this does not solve the problem. Here's