Search Annotation by its Name Using Javascript

Hi
my requirement is to find the annotation using its Annotation name using Javascript
i.e by entering the Annotation name in my user interface  created by javascript it should set focus to that particular annotation

I don't think it's possible to do that exactly. You can search for the annotation, but you can't select it. However, you can switch the document to the page where the annotation is located.

Similar Messages

  • Indesign grep search on page by page using javascript

    Hi,
    Is it possible to grep search a word page by page instead of searching in whole document..
    If it is possible, please suggest how to do this.
    Thanks,
    Gopal

    Hi Gopal,
    You can't search directly in page. Instead you can search by pages[n].textFrames[x].texts[0].findGrep().
    Regards,
    Ramkumar .P

  • How to search for a certain cross reference using its name in FM 11?

    How to search for a certain cross reference using its name in FM 11?

    Well, thank you. I am only using Find dialog box. By "name", I'd like to give an example. The background is FM 11 structured. I have an element "xref" which is used to make cross reference. Now In Chapter 1, there is a sentence like "This is an ODU for ...". I made a cross ref of the word "ODU" to its full name "outdoor unit" in Chapter 2 (in the same book). After this, the word "ODU" in the sentence in Chapter 1 will no longer be a plain text. So I no longer can use the find dialog box to search for "ODU" because it is already an xref rather than text. I am not if it's clear.

  • Using Javascript to rasterize a layer and maintain its position with other layers.

    Trying to use javascript to rasterize just the contents of a certain layer by its name.
    It needs to maintain its position.
    I've sort of cobbled a script, but it keeps moving the rastered art to the top layer.
    Ex, top down i have Layer 4, RasterizeMe, Layer 2, Layer 1. 
    The rastered contents end up on Layer 4
    Any help would be apprecieated, or if theres a better method of doing this.
    //  Rasterize Layer by name
        if ( app.documents.length > 0 ) {
            doc = app.activeDocument;
            if(!doc.saved){
                Window.alert("This script needs to modify your document. Please save it before running this script.");
            }else{
                createRasterLayer(doc);
        }else{
            Window.alert("You must open at least one document.");
    function createRasterLayer(doc){
        var totalLayers = doc.layers.length;  //get the total number of layers in the active document
        for ( var i = 0 ; i < totalLayers ; i++){  //looping through layers            
            var currentLayer = doc.layers[i];
            var tempItem;
            if(currentLayer.visible == false) continue;   //We don't want to deal with hidden layers
            currentLayer.locked = false;                       //Unlock the layer if needed
            var layerName = new String( currentLayer.name );
            if ( layerName.indexOf("RasterizeMe") == 0 ) {
                currentLayer.hasSelectedArtwork = true;   //Select ALL in the layer
                if(doc.visibleBounds[2] == 0) continue;   // ignore empty layers
                var newoptions = new RasterizeOptions; 
                newoptions.resolution = 350;
                if ( doc.selection.length > 0 ) {
                    newGroup = app.activeDocument.groupItems.add();
                    for ( z = 0; z < doc.selection.length; z++ ) {
                        doc.selection[z].move( newGroup, ElementPlacement.INSIDE);
                    doc.rasterize (newGroup, newGroup.visibleBounds, newoptions);

    you're adding the group to the document, it will be the top most object on the top most layer
    newGroup = app.activeDocument.groupItems.add();
    use this to add the group to the current layer
    newGroup = currentLayer.groupItems.add();
    or if theres a better method of doing this.
    I would
    - loop through all layers,
    - hide them all, except the one you want to rasterize,
    - Rasterize the document
    - unhide layers

  • How do I use search/find to search for a folder name

    I can successfully use Spotlight and Search in Finder and Mail to find files and emails based on their titles and contents, but how to I use the search functions to find a FOLDER by its name, that I have somehere in my nests of folders - so I can then look inside that folder for what I am looking for.
    The search results never seem to show up any folder names?

    I do have several levels of nested email folders and several hundred folders created over the years. So I was hoping to be able to search for a folder's name, and be taken to it to see it and all of its contents.
    The best I seem to be able to do is search for a word that I hope I remember is in one of the emails in that folder, and then find that email in the search results list - but that list still doesn't tell me where the folder in the nested heirarchy that is my mailbox

  • Set annotation flags for link annotations using JavaScript

    The JavaScript for Acrobat API Reference doesn't list Link as an annotation type[1]even if it's a subtype in the PDF specification (8.4.5 Annotation Types).
    I know how to get the link objects using JavaScript, but they don't have a print property, because it belongs to its mother annotation object.
    Example:
    I have a scanned PDF, OCRed, with two links. Acrobat's content panels shows an annotation object with two links.
    >this.syncAnnotScan();
    >var annots = this.getAnnots();
    returns
    >null
    Any idea how to set the annotation flag to Print for a link annotation using JavaScript? (flag 3 aka Print is required for PDF/A)
    [1] http://livedocs.adobe.com/acrobat_sdk/9/Acrobat9_HTMLHelp/JS_API_AcroJS.88.20.html

    Hi,
    Thanks for replying. But this example sets falshvars through the UI, and as I have mentioned I want this done from javascript in the document - I dont have the value for some of the flashvars during embedding.
    (Using a EI call is my last resort, as I am not expected to make any modification to the SWF file - the SWF file, hitherto, was being hosted in a HTML where it was being passed flashvar params)

  • Can we access the session scoped variable by simply using its name

    The Java EE 6 Tutorial contains a "Duke's Bookstore Case Study Example”. I could not understand following statements of this case study:
    *bookdetails.xhtml*
    {code}
    <h:outputText value="#{selected.title}"/>
    {code}
    *BookstoreBean.java*
    {code}
    public String details() {
    context()
    .getExternalContext()
    .getSessionMap()
    .put(
    "selected",
    getFeatured());
    return ("bookdetails");
    {code}
    I want to know can we access the session scoped variable in bookdetails.xhtml by simply using its name as done above?

    It is basic Expression Language (EL) functionality, it isn't even specific to JSF. And it isn't specific to the session scope either, you can put beans in any scope (page, request, session, application, flash, conversation, whatever custom scope you create) and reference it using EL by only its name. The thing that you have to take care of is that the bean lives in SOME scope, which can be achieved using JSF specific annotations or configuration files, through CDI or by manually putting the bean in a specific scope through Java code. It's flexible, which is the nature of the Java platform.

  • I was told of an application that will allow the use of a second screen to view my data and files, but I forgot its name. I'd like to make the connection because my LCD is broken.

    I was told of an application that will allow the use of a second screen to view my data and files, but I forgot its name. I'd like to make the connection because my LCD is broken.

    You don't need an application, just plug a compaitble monitor into the display port of your MacBook Pro, set the screen up in System Preferences>Displays

  • Help needed. I have a 3TB external hard drive partitioned into 1TB's. I used one partition as backup for the main computer hard drive. But now it is greyed out as shown in the disk utility and its name changed, i dont know how that happened, i tried verif

    Help needed. I have a 3TB external hard drive partitioned into 1TB's. I used one partition as backup for the main computer hard drive. But now it is greyed out as shown in the disk utility and its name changed, i dont know how that happened, i tried verifying and repairing it but had no luck. I also tried mounting and unmounting it but still no solution. Anyone to help please?

    Looks bad. I would strongly advise backing up the stuff on the other two partitions as soon as possible in case the rest of the drive goes wrong.
    Beyond that, Disk Utility has limited abilities to repair disks, DiskWarrior uses a different approach and might, emphasis might be more successful. It has certainly done the job for me in the past when Disk Utility could not.
    See http://www.alsoft.com/diskwarrior/

  • Save each page of a multi-page document as a separate file using spawned file names with javascript

    Hello
    We are currently changing our hard-copy personnel files and converting them to pdf files.  We have scanned the entire file into one multi-page document.
    I am wanting to save each page (or groups of pages) as separate files.
    In order to facilitate this, I have duplicated field names--such as FirstName, LastName, EmpNo on each page.  This information should be static for the entire file.
    However--I also need information that will change for each individual "page" or document--such as TypeOfDoc, Date, etc.  I have used the Spawn fields using the overlay method on each of the pages in the document.  Then I went in and filled in the information for each page of the document--such as TypeOfDoc, DateOfDoc.
    Now I want to save each page of the document as a separate file using the field names as the file name.
    I first created an action that would split all the pages into separate files and save them into a folder.
    Then I want to save each file as a specific file name based on the information in the fields.
    My problem is obtaining the name of the spawned field name.  The rest of the field names I am not having a problem with.
    This is what I have so far to name the file.
    // Get the field value
    var oPage = this.pageNum;
    var fn = getField("P" + oPage + ".TEMPLATE.DateOfDoc").valueAsString + getField("FirstName").valueAsString + "-" + getField("LastName").valueAsString;
    // Specify the folder
    var fldr = "/n/Personnel/ScannedDocuments/NAMEDPAAS/";
    // Determine the full path
    var fp = fldr + fn +".pdf";
    // Save the file
    myTrustedSpecialTaskFunc(this, fp);
    This code is also accompanied with folder level scripts.
    My problem is obtaining the name of the spawned fields using javascript.  Each document has several pages--so I would like to obtain the field name through script.
    I receive the following error.
    TypeError: getField("P" + oPage + ".TEMPLATE.DATE") is null
    I think this is due to the fact that I have extracted all the pages as individual files.
    If I were to do the above, but not extract the pages first--I do not know how to just save one page at a time.
    Please help.  This is a massive project, and if we have to save each file individually, it will take a lot of time.
    I am a beginner, so any assistance is appreciated.
    Thank you

    I am not understanding exactly where to put the curly brackets.  I have tried two different ways, and still get the same error.
    This is one way
    var oPage = this.pageNum;
    // Specify the folder
    var fldr = "/n/Personnel/ScannedDocuments/NAMEDPAAS/";
    // Determine the full path
    var fp = fldr + fn +".pdf";
    for (var i = 0; i < this.numPages; i++) 
    var fn = getField("P" + oPage + ".template.DateOfDoc").valueAsString + getField("FirstName").valueAsString + "-" + getField("LastName").valueAsString;
    {this.extractPages({  
    nStart: i,  
    cPath : fldr + fn + ".pdf"
    The other is this
    var oPage = this.pageNum;
    // Specify the folder
    var fldr = "/n/Personnel/ScannedDocuments/NAMEDPAAS/";
    // Determine the full path
    var fp = fldr + fn +".pdf";
    for (var i = 0; i < this.numPages; i++) 
    var fn = getField("P" + oPage + ".template.DateOfDoc").valueAsString + getField("FirstName").valueAsString + "-" + getField("LastName").valueAsString;
    this.extractPages({  
    nStart: i,  
    cPath : fldr + fn + ".pdf"
    Thank you for your help.

  • Using JavaScript to search for dates in PDF

    Hello,
    I have a question about using JavaScript in Adobe Acrobat X Pro.
    I want a script that automatically search dates which fall within one week of the date of today.
    If this is true then the pdf file have to be deleted. If the date is later then one week of the date of today then the pdf file must be moved to a different folder.
    I hope anyone can help me with a solution.
    With regards,
    Robert

    Searching is the easy part. The problem is that a script can't delete a
    file, nor can it move a file to another problem.
    On Wed, Jan 7, 2015 at 8:55 AM, RobertZandberg <[email protected]>

  • Using JavaScript to Determine a Form's Folder Name

    We have an awful lot of forms, and in many cases, our custom JavaScript applies to all forms in a given folder. We would like to determine the form's folder name so that we don't have to list each and every form in a giant "IF" statement.
    Has anyone figured out how to determine a form's folder using JavaScript?
    Thanks!
    - Jake

    Jake_Turrell wrote:
    I think the only solution to the "refresh" issue would be to somehow query the hsp_object table and grab the parent_id (which for a form is the folder ID). If anyone figures out how to query the application repository from JavaScript,that would be very, very cool.
    As the database is server side and javascript is client side you would have to use something like an ajax call that passes the form id into an jsp script, the jsp script would query the repository and return the value to javascript.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Using Javascript to change multiple text field names

    I have a pdf with multiple text fields. I need to change all the text field names (General -> Name) so that they are unique so that when I combine multiple pdfs together, the text fields will stay intact. Is there anyway to do this using javascript? Thanks!

    I'm new to javascript too...it will be very helpfull for me too...Thanks
    poltrone
    prodotti chimici

  • Set "peoples or groups" field with current user "login name" in sharepoint list form using javascript

    hi friends
    i am trying to set peoples or groups field in sharepoint  list form with current user login name
    here my code
    <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.js"></script>
    <script type="text/javascript">
    $(document).ready(function NewItemView () {
    var currentUser;
        if (SP.ClientContext != null) {
          SP.SOD.executeOrDelayUntilScriptLoaded(getCurrentUser, 'SP.js');
        else {
          SP.SOD.executeFunc('sp.js', null, getCurrentUser);
        function getCurrentUser() {
          var context = new SP.ClientContext.get_current();
          var web = context.get_web();
          currentUser = web.get_currentUser();
          context.load(currentUser);
          context.executeQueryAsync(onSuccessMethod, onRequestFail);
        function onSuccessMethod(sender, args) {
          var account = currentUser.get_loginName();
          var accountEmail = currentUser.get_email();
          var currentUserAccount = account.substring(account.indexOf("|") + 1);
        SetAndResolvePeoplePicker("requester",account);
    // This function runs if the executeQueryAsync call fails.
        function onRequestFail(sender, args) {
          alert('request failed' + args.get_message() + '\n' + args.get_stackTrace());
     function SetAndResolvePeoplePicker(fieldName, userAccountName) {
       var controlName = fieldName;
        var peoplePickerDiv = $("[id$='ClientPeoplePicker'][title='" + controlName + "']");
        var peoplePickerEditor = peoplePickerDiv.find("[title='" + controlName + "']");
        var spPeoplePicker = SPClientPeoplePicker.SPClientPeoplePickerDict[peoplePickerDiv[0].id];
        peoplePickerEditor.val(userAccountName);
        spPeoplePicker.AddUnresolvedUserFromEditor(true);
    </script>
    but it is not working
    please help me

    Hi,
    According to your post, my understanding is that you wanted to set "peoples or groups" field with current user "login name" in SharePoint list form using JavaScript.
    To set "peoples or groups" field with current user "login name”,  you can use the below code:
    <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.js"></script>
    <script type="text/javascript">
    function SetPickerValue(pickerid, key, dispval) {
    var xml = '<Entities Append="False" Error="" Separator=";" MaxHeight="3">';
    xml = xml + PreparePickerEntityXml(key, dispval);
    xml = xml + '</Entities>';
    EntityEditorCallback(xml, pickerid, true);
    function PreparePickerEntityXml(key, dispval) {
    return '<Entity Key="' + key + '" DisplayText="' + dispval + '" IsResolved="True" Description="' + key + '"><MultipleMatches /></Entity>';
    function GetCurrentUserAndInsertIntoUserField() {
    var context = new SP.ClientContext.get_current();
    var web = context.get_web();
    this._currentUser = web.get_currentUser();
    context.load(this._currentUser);
    context.executeQueryAsync(Function.createDelegate(this, this.onSuccess),
    Function.createDelegate(this, this.onFailure));
    function onSuccess(sender, args) {
    SetPickerValue('ctl00_m_g_99f3303a_dffa_4436_8bfa_3511d9ffddc0_ctl00_ctl05_ctl01_ctl00_ctl00_ctl04_ctl00_ctl00_UserField', this._currentUser.get_loginName(),
    this._currentUser.get_title());
    function onFaiure(sender, args) {
    alert(args.get_message() + ' ' + args.get_stackTrace());
    ExecuteOrDelayUntilScriptLoaded(GetCurrentUserAndInsertIntoUserField, "sp.js");
    </script>
    More information:
    http://alexeybbb.blogspot.com/2012/10/sharepoint-set-peoplepicker-via-js.html
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Document search by file name using TREX

    Hello,
    We have implemented searching of documents using TREX. At the moment TREX finds all documents where search term is included BOTH in the file name (title) AND the content of the document. We need to limit the search results only to the documents where the search term is a part of the file name/title and NOT the content.
    I know that searching for the term in the title and content is a standard functionality. Is there any way to limit searching for documents only to the title? Are there any parameters that I could place in the KM Document iView in the property 'query' that will limit searching to the file name?
    We use SAP NW 7.0 SP18.
    Best regards,
    Beata

    Hi Bobu,
    I have followed the suggested solution with the predifined properties - "cm_displayname(/default)" - in a new Search option set and a new Search  Component set containing only two aliases: search_predefined_props and standard_search, but it seems that searching is using the standard_search alias anyway. If I remove it from the search component, I do not have a full-search field for entering the value.
    BR
    Beata

Maybe you are looking for

  • Aperture 3 backup/copy (before removing from computer all together to make space)

    Hi All, I have Aperture 3 running on a 128gb 2011 MacBook Air. The problem is I have run out of space.  The other problem is I am living out of a 33l bag and cannot carry all sorts of external drives for multiple backups.  I'm using Time Machine on t

  • Call WebDynpro component interface

    Hi experts We have developed a WebDynpro component to export context data node to excel file using jakarta poi libs. This component have all logic to generate the excel file, and have only one method in component interface controller, this method is

  • [nQs error: 16001] ODBC error state: S1000 code:15105 message: [TimesTen]

    Hi Gurus, Can some one guide me in resolving this issue. I am facing this issue when i try to view data/update row count from __05 - Sample App Data (TimesTen)__ after implementing TimesTen data base during Sample apps Deployment. *[nQs error: 16001]

  • Scalability of OBPM

    Hi all, I wanted to know the scalability of OBPM. What is the maximum number of instances that BPM can handle with optimum processing with one server? What should be the size of each instance? There should not be any glitch or errors while doing so..

  • TS3694 Error nº 3194 without solution

    I had error number 3194 in iTunes while I was trying to update my iPad 2 WIFI firmware from 4.3.3 to 5.1.1 I did everything diferent posts about how to resolve the problem taught me to do, but it persists and I have been three days trying it, what ma