Find the layer with the name "Name1" a name change for 'name2' and then save PDF

Hi there together, we have the following problem:

We need a Javascript script to rename all the layers named 'name1' to 'name2' and then save the PDF file.

Any help would be greatly appreciated.

Thank you very much

Patrick

Advertisement

This code will rename the layer:

var ocgArray = this.getOCGs();
for (var i=0; i

Save the file afterwards is more complicated. You can use the Save command sub in a context of trust to do it silently, or you can call the dialog box save as, and let the user manually, by using the command app.execMenuItem ("SaveAs").

Tags: Acrobat

Similar Questions

  • I'm trying to find the name of this font and where I can get it.

    logo3.png

    In fact, this is Vladimir regular Script. I think it's a font with the default installation of Photoshop.

  • Display the name change for the story?

    Hi all

    I was wondering, if I change my display name (not username, of course), which would change my nickname for ALL past and present message and call history/records (not only recent but all THE records taken)?

    A quick response would be greatly appreciated.

    Thank you.

    Hi, Narpoo,

    Yes, it is a change of 'global '.

    See you soon!

    Elaine

    __________________________________________________________________________________________________
    Your question has been answered? Please click on the link to accept as a Solutionfor everyone can quickly find what works! As a post or want to say, 'Thank You ' -? Click on the button of congratulations!
    Reliable information: Brian Krebs: 3 basic rules for online safety

  • DeskJet All in One 2540 series. How can I find the name and address of the fax server?

    I'm working on my Windows 7 64 bit computer laptop and I try to send a fax with Microsoft Fax and Scan and HP Deskjet 2542 all-in - one network.

    When it comes to the name and the address of the fax server, I can't find it.

    Can someone tell me please know how to find it please?

    Thank you very much for this information.

    You use a server on your network, and that is why you do not connect to a fax modem? If so, then please follow this entire document to Microsoft Fax Server Guide for step by stepwhich explains how to find the name of Sever.

    Please post your results again!

  • Windows Mail Contacts: How can I find the names in alphabetical order A - Z?

    original title: Windows Messaging Contacts

    I use Windows Mail in Vista. If I open my Contacts icon, all my names are listed in order alphabetical by last name, except they start from the Z - A instead of A to Z. However, if I click on "New Message", click the "To" box, all names are blurred; that is, they are not in alphabetical order, and I can't get a person with the same name as another. How can I a) find the names in alphabetical order, from A to Z when I click on the box 'To', and b) retrieve my contacts displayed A - Z?

    Thank you.

    By clicking on the header above the names of contacts line, they should be used in the other direction. Brian Tillman [MVP-Outlook]
    ------------------------------
    If a response may help, please vote it as useful. If a response to the problem, please mark it as an answer.

  • What is the query to find the name of all applications for all EBS R12.1.3 modules?

    What is the query to find the name of all applications for all EBS R12.1.3 modules?

    With regard to:

    Mr. Shahzad Saleem

    Try:

    SELECT * FROM fnd_concurrent_programs_vl;

  • How to find the name of the image in E10?

    Hi all

    This may be a simple question, but the question in the moment: is there a way to tell what image name is E10? I have an email with two images that I can't find the names. I tried hover, right-click, looking for a possible name, etc, nothing works! I believe in E9, you could just look at the details of the image, or open the HTML, y at - it something like this in E10? HTML is not an option, as this was built using the e-mail writer.

    Thank you very much!

    Hi Hayley,

    The best way to find the name of an image that was inserted in an email is to send a test e-mail. Upon receipt of the email, use the "Open web version" link to open the email in your browser. Once opened in your browser, right click on the email address and select the "View Page Source" option, this will display the HTML for email. If you follow the natural progression of the email from top to bottom, in among all the content text and code, you should be able to find the names of the image. They will look something like this http://images.response. "/ EloquaImages/clients***/{b823ae52-fb21-4532-882f-b1f4e9cb423b}_facebook.png" width = "27" height = "26" alt = "Facebook" > where facebook.png is the name of the image.

    I hope this helps.

    Tim

    LBDGA

  • Need to find the version number referring to the last name change for each emplid.

    emplIDName ageVersion
    --------   -----------
    1ABC252
    1ABC265
    1def279
    1def2815
    1def2918
    2JKL155
    2MNO168
    2MNO1711
    2PQR1820

    Need to find the version number referring to the last name change for each emplid.

    As indicated by the version number change when there is change in age as well, but I need a query that gives the version number referring to the last name change for each emplid.

    with

    DATA_TABLE (EmplId, Name, Age, version) as

    (select 1, 'abc', 25, 2 double Union all

    Select 1, 'abc', 26, 5 Union double all the

    Select 1, 'def', 27, 9 double Union all

    Select 1, 'def', 28, 15 double Union all

    Select 1, 'def', 29, 18 double Union all

    Select 2, 'jkl', 15 5 Union double all the

    Select 2, 'mno', 16, 8 double Union all

    Select 2, 'mno', 17, 11 double Union all

    Select 2, 'pqr', 18, 20 double

    )

    Select emplid,

    Max (Name) name of Dungeon (dense_rank last order by version).

    Max (Age) age of Dungeon (dense_rank last order by version).

    version Max (version)

    from (select emplid, name, version,)

    -case where name! = lag(name,1,name) on (emplid version order partition)

    then "renamed".

    end change

    of data_table

    )

    where the change is not null

    Emplid group

    EMPLID NAME AGE VERSION
    1 def 27 9
    2 PQR 18 20

    Concerning

    Etbin

  • How to find the name of the Oracle database server?

    People,

    Hello. I installed Oracle Database 11 g 2 OS Oracle Linux 5. The installed directory is/home/user/OracleDB_Home and/home/user/OracleDB_Base.

    Host name is "mylinux". Name of the database instance is PT853.

    I use "mylinux" as the name of the database server, it does not work. I use another way to do as below:

    Export ORACLE_HOME = / home/user/OracleDB_Home

    Can I use "mylinux ORACLE_HOME" as the name of the database server, it does not work either.


    My question is:

    How to find the name of the database server Oracle with Oracle Linux 5 OS?


    Thank you.

    You must learn the basic of database Oracle.

    Please don't regard it not same as SQL server in terms of configuration.

    You never specify the database server name in Oracle.

    You specify the host name in only two places, 1) Tnsnames.ora/JDBC/ODBC (or any client you want to connect) and listener.ora) 2.

    There was nothing called specify the name of the Oracle database from an oracle database server.

    Concerning

    Anurag.

  • Find the name and the table constraint type based on the name of the field

    I have a field name or a column with me... I want to find the name of the table is a primary key... Any request to make this work so that the running costs are low...

    Currently, I mix dba_constraints and ALL_TAB_COLUMNS to get this... is possible to extract the data of a process cost effective single table/any other is appreciated

    You must include the USER/ALL_CONSTRAINTS with USER/ALL_CONS_COLUMNS to achieve your desired results. For your specific condition, you can try this query.

    Select constraint_name

    column_name

    de)

    Select c.constraint_name

    cc.column_name

    count on column_count (c.constraint_name score) (cc.column_name)

    from user_constraints c

    Join user_cons_columns cc

    on c.constraint_name = cc.constraint_name

    where constraint_type = 'P '.

    )

    where column_name = 'EMPNO '.

    and column_count = 1;

    I used USER_CONSTRAINTS and USER_CONS_COLUMNS. If you use ALL or DBA dictionary table add join OWNER condition as well.

  • Find the name of ref vm data center

    Hello

    When I get VmCreatedEvent I get new vm REF. During the recovery of new VMs property, I would find the 'name of the Datacenter". I'm not able to cross over from the VM to the data center. Can someone help me with this?

    I'm more trying traversal (vSphere SDK for Java):

    PropertySpec dcSpec = new PropertySpec();

    dcSpec.setType ("data center");

    dcSpec.setPathSet (new String() {"name"});

    hostPropSpec.setAll (false);

    SelectionSpec recurseParents = new SelectionSpec();
    recurseParents.setName ("parent2parent");
    TraversalSpec dcTraversalSpec = new TraversalSpec();
    dcTraversalSpec.setType ("VirtualMachine");
    dcTraversalSpec.setPath ("parent");
    dcTraversalSpec.setName (recurseParents.getName ());
    dcTraversalSpec.setSelectSet (new SelectionSpec [] {recurseParents});

    PropertyFilterSpec pfSpec = new PropertyFilterSpec();

    pfSpec.setPropSet (new [] {dcSpec} PropertySpec);

    pfSpec.setObjectSet (new [] {oSpec} ObjectSpec);

    return getService () .retrieveProperties (getContent () .getPropertyCollector (new PropertyFilterSpec [] {pfSpec}));

    It does not work.

    Thanks in advance.

    Hello

    I have the c# code for obtaining the name of ref. vm datacenter Here, I have explained how I got data center using vm ref in c#. I think it may useful allows you to get an equivalent in java.

    steps to follow:

    (1) download ref vm using the findbyip method by sending name datacenter as null.

    ManagedObjectReference VMObject is _service. FindByIp (_sic.searchIndex, null, clientIp, true);

    (2) get the vmparent as moref using getdynamicprop

    ManagedObjectReference vmParent is GetDynamicProp (ManagedObjectReference) (VMObject, 'parent');.

    (3) get the name of Datacenter as moref using getdynamicprop

    Data Center ManagedObjectReference = (ManagedObjectReference) GetDynamicProp (vmParent, 'parent');

    Let me know if you need an explanation of function getdynamicprop. I think it will be vijava CBC.

    Thank you

    Vijaya

  • Where can I find the name of a vCenter Server?

    For an ESX Server, I can find the name using the $_ - & gt; Summary - & gt; config - & gt; name, where $_ is a host view.

    How to find the name of a vCenter Server?  There really a distinct name to the host name of the system?  If this isn't the case, I would still find it.

    Where it appears in the object hierarchy?

    Thank you.

    3 ways:

    (1) because you connect to a vCenter server, you can retrieve the name of the - server variable

    2) there is an advanced vpx option that contains the name of the instance of vCenter: VirtualCenter.InstanceName who should be its host name, either long or short

    (3) If you are on a host ESX (i) which is managed by vCenter host, there is an exposed property called managementServerIp - http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.host.Summary.html#managementServerIp where you can do a search of reserve if you have correctly configured to get FULL of DNS domain name

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    Twitter: @lamw

    repository scripts vGhetto

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    VMware Code Central - Scripts/code samples for developers and administrators

    VMware developer community

    If you find this information useful, please give points to "correct" or "useful".

  • How to find the name of a column in a table

    Hi all

    I have a Table that contains approximately 100 columns.


    I need to find the column name, to find in specific columns containing data like 'abc '.

    Ex: I have a table like temp_table_name
    the columns are col1, col2, col3, col4, col5, col6, col7, col8,.... col99
    I'm looking for with data specific like 'abc '.

    Need to find the name of the table column that contains data of 'abc '.

    Please suggest me. How to find in a single query... :-)

    Actually I'm looking through a column of the table as below
    Select count (*) in the temp_table_name where col1 = 'abc '.

    FOR I IN 1.20 LOOP
    ln_num_of_rows: = 0;
    lv_column_name_search: = "col" | I have;

    lv_sql: = ' select count (*) in the temp_table_name where ' | lv_column_name_search | "= abc";

    EXECUTE IMMEDIATE lv_sql INTO ln_num_of_rows;

    IF ln_num_of_rows > 0
    -column found in lv_column_name_search
    EXIT;
    END IF;
    END LOOP;

    But I'm gettig performance problem.

    How can I do this in any other alternative way? could you suggest any way possible as soon as POSSIBLE.

    It's probably never going to be effective - realistic, you have to scan completes the picture.

    You could probably improve a little things by doing something like

    SELECT DISTINCT column_name
      FROM (
        SELECT (CASE WHEN col1 = 'abc' THEN 'col1'
                    WHEN col2 = 'abc' THEN 'col2'
                    WHEN col3 = 'abc' THEN 'col3'
                    ...
                    WHEN col20 = 'abc' THEN 'col20'
                    ELSE NULL
                    END) column_name
          FROM table_name
        WHERE col1 = 'abc'
            OR col2 = 'abc'
            ...
            OR col20 = 'abc'
      )
    

    but it's never going to be incredibly fast.

    Justin

  • Can I hold ThisContext go a step and use it in a later step to find the name of the current stage? Error 1 when retrieving the name of the step.

    I am trying to create a generic message using LVOOP logging class.  The recorder would include information on stage during execution (name, sequence, etc.).  I would like to create the message object log and then move it into another object (communication, controller of oven, etc.).  Everyone should get its own copy.  None of this is a problem to date.

    I found ways to gather the necessary information to ThisContext.  However, this only seems to work if ThisContext is spent in running step.  If I want ThisContext in LVOOP, the next step to try to use causes an error 1 "an input parameter is incorrect."  Is it possible to get this kind of information (name, sequence, etc.) without ThisContext in at each stage?  It would be inappropriate to do so, but if necessary I will.  It does not go against LVOOP.

    Summary: Can I hold ThisContext go a step and use it in a later step to find the name of the current stage?  If not, is there an effective way to do this?

    My solution was to store the reference to thread.  At each step, I can retrieve the current context.  This is valid only in a thread, but meets my needs.  I could also move something to a higher level, but it would need to know the thread that interests me in any case.

  • How do you find the name of the Group and channel your TDMS file name?

    How do you find the name of the Group and channel your TDMS file name?

    Nevermind, I've used the file viewer.

Maybe you are looking for