Dynamic stamp scripting which worked in Acrobat 9 Pro not working in Acrobat XI Pro

I don't know JavaScript, so I am flying blind. I have recently updated to Acrobat XI Pro (on Win 7 Pro). I have had trouble setting up the same dynamic stamps that I had working in Acrobat 9. Just creating the stamps has been difficult, but the real pain has been trying to use the same scripting that I was using before. In particular, I have a field in which I want to enter details of a payment, such as cheque number. The script that worked before was:
var cAsk = "Enter Payment Details" ;
var cTitle = "Payment Details:  ";
if(event.source.forReal && (event.source.stampName == "#X-MzCINchnGa7KblIGbv5C"))
  var cMsg = app.response(cAsk, cTitle);
  event.value = cMsg;
  event.source.source.info.exhibit = cMsg;
The JavaScript debugger goes nuts about event.source being null and I am completely lost.
Can anyone suggest a script which is likely to work for me? Is there any tutorial or similar material dealing with these issues in Acrobat XI Pro and in language that I am likely to understand?
Thanks in advance.

Change the start of the if-statement to:
if (event.source && event.source.forReal && ...

Similar Messages

  • Where must I place a dynamic stamp on my mac for Acrobat XI Pro

    I created a PDF with dynamic stamps.  These stamps I normally place in the Stamps folder on my PC but I obtained an iMac and installed Adobe XI Pro on it and cannot locate the folder to install the dynamic stamps.  Can some one please indicate to me where I can find this folder?  I have looked in several locations in the library folder.
    REgards Hoender

    Here: 
    /Users/[USERNAME]/Library/Application\ Support/Adobe/Acrobat/11.0/Stamps

  • SVN script which worked fine in SL is broken in Lion..

    Okay, so I used the following script in SL to pop up Terminal, open four tabs, and type "svn up" in a different directory in each tab. This updated the four projects I work on regularly, all with a couple of keystrokes.
    Since upgrading to Lion, it no longer works. It seems to type the directory name twice, then I'm told the Working copy '.' is locked. I literally didn't touch it at all between SL and Lion, so I'm not sure what I should do to fix it, I'm not really a coder, more of a consultant, so not really an AppleScript user either, somebody helped me make the thing in the first place I'd really appreciate some insight and help, thanks in advance!
    tell application "Terminal" to activate
    tell application "Terminal"
        do script "cd Projects/project1/trunk" in front window
        do script "svn up" in front window
    end tell
    tell application "System Events" to tell process "Terminal" to keystroke "t" using command down
    tell application "Terminal"
        do script "cd Projects/project2/trunk" in front window
        do script "svn up" in front window
    end tell
    tell application "System Events" to tell process "Terminal" to keystroke "t" using command down
    tell application "Terminal"
        do script "cd Projects/project3/trunk" in front window
        do script "svn up" in front window
    end tell
    tell application "System Events" to tell process "Terminal" to keystroke "t" using command down
    tell application "Terminal"
        do script "cd Projects/project4/trunk" in front window
        do script "svn up" in front window
    end tell

    Interesting. I can honestly say I've never encountered that before. The other solution, of course, is to use full paths in your commands, rather than relative paths. i.e. instead of:
        do script "cd Projects/project3/trunk" in front window
    say:
        do script "cd ~/Projects/project3/trunk" in front window
    The addition of the ~/ identifies the path as being based on the user's home directory, not based on the current directory (whatever that may be).

  • Acrobat Pro 8 - Create a Dynamic Stamp

    1. How can I create my own dynamic stamp, for instance, how can I change the existing dynamic stamp "Approved" to "Released" with same time and date included.
    2. How can I create my own dynamic stamp with some defined chops with additional "released", time and date included.
    Hope I have made myself clear for these question, I have searched in the knowledge database, could not been able to get it.
    Thanks and regards,
    Tom Tang

    Hi gbsales,
    Did you read the Dynamic Stamps Secrets article (http://www.acrobatusers.com/tutorials/2007/02/dynamic_stamp_secrets )?  It explains how to locate your dynamic stamp files (which are really PDF files) after you create them.  Once you locate them on your system you can make a copy and distribute the files to your co-workers.  Of course, they will have to place them into the stamps folder on their Acrobat stamps folder too ( they can run the same code to find the path to the correct foler on their system).
    From the Console Window run
    app.getPath ("app", "stamps");
    app.getPath ("user", "stamps");
    to locate your stamp files.  Further details are in the article.
    Hope this helps,
    Dimitri
    WindJack Solutions
    www.windjack.com
    www.pdfscripting.com

  • How can I get a Powershell script which maps network drives to execute at logon to any workstation in my domain

    I want to map network drives for each user when they logon to any workstation in the network.  I have created and tested the PS1 script which works fine where the drives attach and used persistent parameter.  I have updated the Windows 7 Professional
    64-bit workstation to the latest PS 4.0 code.  I have created the GPO and believe everything is assigned properly.  I made changes to allow execution of local and remote signed scripts.  I have forced the changes on a workstation using GPUPDATE
    /force, but the drives do not connect.  The GPRESULT is as follows which shows the policies are in place as shown below.  
    What am I missing to get the script to execute? 
    RSOP data for MRC\mikeg on MIDRUBD03 : Logging Mode
    OS Configuration:            Member Workstation
    OS Version:                  6.1.7601
    Site Name:                   N/A
    Roaming Profile:             N/A
    Local Profile:               C:\Users\mikeg.MRC
    Connected over a slow link?: No
    USER SETTINGS
        CN=My Name,CN=Users,DC=mrc,DC=net
        Last time Group Policy was applied: 7/21/2014 at 8:22:05 AM
        Group Policy was applied from:      MIDSRVR01.mrc.net
        Group Policy slow link threshold:   500 kbps
        Domain Name:                        MRC
        Domain Type:                        Windows 2000
        Applied Group Policy Objects
            StartingUp
        The following GPOs were not applied because they were filtered out
            Default Domain Policy
                Filtering:  Not Applied (Empty)
            Local Group Policy
                Filtering:  Not Applied (Empty)
        The user is a part of the following security groups
            Domain Admins
            Everyone
            BUILTIN\Administrators
            BUILTIN\Users
            NT AUTHORITY\INTERACTIVE
            CONSOLE LOGON
            NT AUTHORITY\Authenticated Users
            This Organization
            LOCAL
            MRCAdmins
            Domain Users
            Enterprise Admins
            Schema Admins
            AS400_Permanent_Users
            Denied RODC Password Replication Group
            DnsAdmins
            High Mandatory Level
        The user has the following security privileges
        Resultant Set Of Policies for User
            Software Installations
                N/A
            Logon Scripts
                GPO: StartingUp
                    Name:         C:\Windows\SYSVOL\sysvol\mrc.net\Policies\{47773A6D-1115-4A3D-BB74-F672B315A430}\User\Scr
    pts\Logon\MapDriveScript.ps1
                    Parameters:
                    LastExecuted: This script has not yet been executed.
            Logoff Scripts
            Public Key Policies
                N/A
            Administrative Templates
                GPO: StartingUp
                    KeyName:     Software\Policies\Microsoft\Windows\PowerShell\EnableScripts
                    Value:       1, 0, 0, 0
                    State:       Enabled
                GPO: StartingUp
                    KeyName:     Software\Policies\Microsoft\Windows\PowerShell\ExecutionPolicy
                    Value:       82, 0, 101, 0, 109, 0, 111, 0, 116, 0, 101, 0, 83, 0, 105, 0, 103, 0, 110, 0, 101, 0, 100,
    0, 0, 0
                    State:       Enabled
            Folder Redirection
                N/A
            Internet Explorer Browser User Interface
                N/A
            Internet Explorer Connection
                N/A
            Internet Explorer URLs
                N/A
            Internet Explorer Security
                N/A
            Internet Explorer Programs
                N/A

    >                  Name:
    > C:\Windows\SYSVOL\sysvol\mrc.net\Policies\{47773A6D-1115-4A3D-BB74-F672B315A430}\User\Scr
    > pts\Logon\MapDriveScript.ps1
    >                  Parameters:
    First: Only one of all current answers points in the right direction.
    You picked the local sysvol path on the DC which does not exist on
    clients, of course...
    The Path to the script MUST be an UNC path starting like
    \\mrc.net\sysvol\mrc.net\Policies\...
    Second: You CANNOT execute PS1 directly (unless you change the .ps1 file
    extension configuration). The "Name" MUST be "powershell.exe", and the
    script itself goes into "Parameters".
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • Dynamic stamp lost identity

    I frequently review documents and use a dynamic stamp to mark them as "Reviewed".  Up until now, the dynamic stamp included my name as well as date and time information.  The identity information is now missing and only includes date and time info - it seems not to pick up the identity info contained in the Identity panel in the Preferences dialog.  Any ideas on how I can restore full functionality (identity info) to the dynamic stamp? I'm using Acrobat ver. 8.2.3.
    Thanks!
    [email address deleted by host]

    Have you looked in the Acrobat JS API Reference?
    identity properties
    identity.name  is Name
    identity.email is the Email Address
    There are no standard properties for Title and Organizational Unit.
    You can use the following code in the Acrobat JavaScript console to see all of the properties and values of the identity object.:
    for (i in identity) {
    console.println(i + ": " + identity[i]);

  • Acrobat 9 - how do you create a dynamic stamp to include the current date (java script)

    I have seen my question multiple places and times but the resolutions provided have not worked for me.
    I am running Acrobat 9 Pro, cannot run X or XI due to the use of ProSystem fx Engagement.
    I want to create what I thought would be a simple stamp. My initials and the current date. i.e. "crm 01/10/13".
    Simple right? I created a PDF of my initials. Now I just need the text field with the proper Java Script to insert the date, correct?
    I have tried opening "Dynamic.pdf" and copying and pasting the text field that includes the Java Script:
    " event.value = (new Date()).toString(); AFDate_FormatEx("h:MM tt, mmm dd, yyyy"); "
    The date does not update, it stays static.
    I have manually entered the Java Script.
    I have edited the Java Script to remove the "Ex".
    I have edited the Java Script to revise the "yyyy" to "yy".
    I have edited the Java Script to remove the " h:MM tt, " trying different formats to get "dd/mm/yy".
    I have selected "Use single-key accelerators to access tools" in Preferences/General.
    I have tried PDF files, PNG files. I have created the image files from Word and Excel.
    I am at my wits' end. Can someone PLEASE assist me to resolve what should be a simple issue (I hope).
    Thank you in advance.

    Thank you for your response.
    Your script works well, but I still have the same issue.  The date is remaining static to the system date when the stamp is created.  My initial idea was to create a pdf of my initials "crm" and then add the text field with the java script for the date behind my initials.  "crm" + (TEXT FIELD with JS).  I wanted 3 stamps, red, blue and green.  The colors correspond to specific processes in our workflow.
    Your script adds my initials as well as the date.
    My machine is running Windows 7.
    My stamps are located:
    C://Documents/Acrobat Stamps/...
    Acrobat templates:
    C://Program Files (x86)/Adobe/Acrobat 9.0/Acrobat/plug_ins/Annotations/Stamps/ENU/...
    I have no problem creating stamps, just a stamp that will use the current system date.  I HATE using the typewriter for my initials and the date.  I guess I can stamp my initials and then type the date...but what is the point?
    Do you have any further thoughts or suggestions?
    Thank you very much.
    crm 01/11/13 

  • Can I create a custom-scripted dynamic stamp in Acrobat Standard or do I have to buy Acrobat Pro?

    I am researching options for the company I work for to take it's invoicing system paperless and I need to know if I can create a custom-scripted dynamic stamp in Acrobat Standard or is that possible only in Acrobat Pro?

    You can create a custom dynamic stamp in Std. and Pro. and you can use the dynamic stamp in Reader as well. Here is an infographic on Creating a Custom Dynamic Stamp in Acrobat XI.

  • Dynamic Stamps Not Working in Adobe Acrobat Pro

    Hi everyone, the dynamic stamps on Adobe Simultaneous Review are no longer working for us. I have Adobe Acrobat Pro 9 (it works for me) but it's not working for many other people (they have Adobe Acrobat Pro X). Does anyone know how we can fix this. I think the problem started occurring a few months ago.
    Many Thanks!
    Joy

    You can shutting down Acrobat and then try moving (DO NOT DELETE - you may want put them back afterward if this doesn't work) the Collab and Sync folder out of the User's Acrobat folder and then rejoin the Shared Review to see if the Dynamic Stamps reappear.

  • Can I balloon engineering prints in Adobe Reader or Acrobat? Create a dynamic stamp w/ Java Script?

    I am trying to establish a very simple way to balloon prints with character numbers; below I have uploaded an example screen shot.  My end goal is for the user to select a dynamic stamp (a circle with a number in the center) and it start numbering with 1 and then increment by 1 yet the user is placing each balloon in its respective location, resetting for each PDF document, one addition would be to allow the balloon numbers to be edited like a text box after they have been created in case there is an error in balloon placement etc.  Is this possible? I have programming experience in other languages, but have only built a few dynamic stamps with time stamp information provided by java script code.
    Any assistance is greatly appreciated!

    Yes it's possible with dynamic stamps, but the code is rather messy as it has to keep a running total.
    See http://www.pdfscripting.com/public/department53.cfm for some samples (and the definitive book on creating your own dynamic stamps), and Rick Borstein's blog for some basic samples that put exhibit numbers on legal documents.

  • HOW TO CREATE A DYNAMIC STAMP ON ACROBAT X PRO????????

    I HAVE BEEN TRYING TO CREATE A  CUSTOM DYNAMIC STAMP ON ADOBE ACROBAT X PRO, I CAN EASILY CREATE A STAMP FROM A pdf FILE BUT WHEN TRYING TO INSERT A TEXT OR CHECK BOXES THEY DO NOT GET ATTACHED TO MY NEWLY CREATED STAMP WHEN I SELECT THAT STAMP ON THE STAMPS PALETE, PLEASE HELP AS ADOBE ACROBAT ONLINE SUPPORT EXEMPT THEMSELVES FROM SUPPORTING WHAT THEY CALLED "OLDER VERSIONS"

    If you need the kind of advanced dynamic stamp that it seems you want, one that prompts you for data to include in the stamp just prior to it being applied to the page, it will require JavaScript. In particular, it will likely best be done with a custom dialog, which requires some rather arcane scripting. I usually advise folks in your position to find someone to do this for you, at least for the first stamp. Feel free to send a PM if you'd like professional help.
    The following book has more information about custom stamps, but lacks much information about the type of dynamic stamp that you're wanting to create: http://www.amazon.com/About-Stamps-Acrobat%C2%AE-Paperless-Workflows/dp/0985614706
    That last part isn't a criticism of the book, which is very good. Custom dialogs are complicated, and using them with stamps adds more complication, so the subject really needs a book of its own to be handled thoroughly.

  • Custom Stamp no longer worker in Acrobat X

    I created a custom stamp using Adobe X; not sure it was working the way it was suppose to but it still met my needs.
    I used a PDF form which I created using Word, added some form fields and saved it.
    Added the PDF form file as a custom stamp.
    Opened another PDF document and was able to insert the custom stamp.....and this is where I don't know if it really worked correctly or not.  The stamp was basically an image, none of the fields were accessible; I thought a PDF form would act like a dynamic stamp but it didn't work as I expected.
    But if I opened the original PDF of the stamp and filled in the form fields & saved it and then inserted the custom stamp again, all the fields were updated/filled in.
    But then for some reason my custom stamp disappeared from stamp pull down menu.  And now when I try to add it back it creates an anonymous PDF file with the current form fields filled in.  If I open the original PDF stamp and change any of the form fields and save it, the custom stamp doesn't update when I go and insert it again.
    And if I delete that anonymous PDF file, my custom stamp again disappears from the stamp pull down menu.
    This now happens with any PDF file I use to create a custom stamp; Acrobat X creates an anonymous PDF file.
    If anyone has any idea how to fix this problem, it would be greatly appreciated.
    GT

    Behavior for PDFs is not handled by SharePoint, but rather Adobe Acrobat. Validate Adobe Acrobat's PDF browser extension has been disabled (you can do this via IE and I believe Adobe Acrobat has this option within it's own Preferences).
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Custom Dynamic Stamp Java not working in WIN7

    I currently was upgraded from WinXP to WIN7. Running Acrobat Prof 8 with all the updates. I created a dozen customized dynamic stamps that grab info and date/time from the system. Using the following java, the stamps worked perfectly.
    event.value = (new Date()).toString();
    AFDate_FormatEx(",m/d/yy");
    event.value = " " + (identity.name || identity.loginName) + " - " + event.value;
    In WIN 7, I am getting a long date and time with no identity.
    HELP
    Ken Panthen
    Albany, NY

    GK,
    I tried a completely new file from scratch, used your script and it did not pick up the user,  it used a long date format, etc. Here is a sample of what I got. I only want the short date and name. No time zone. No name appears. It should be KPanthen.

  • Acrobat 9 dynamic stamp customized transfer from previous version

    client of mine made a custom dynamic stamp and they can get it set up fine (dynamic field inserted in the stamp) and in the correct folder where it pulls the other stamps, but it is not finding it in the stamp list in the program, is what they've told me. This was functioning properly in our old computer when they were an earlier version of Acrobat. I want to know how I can get it to show up. The custom stamp I believe is a jpg cause it was created in photoshop.

    The Acrobat/Reader stamp file specification has not changed sinced Acrobat/Reader 6. So if the stamped worked in an earlier verion it will work in Acrobat 9 and later as well. Since she recreated the stamp it is very likely that she did something different, because it sounds like the stamp was made incorrectly.
    Not all pages in the stamp file are stamps. Stamp pages are marked in a special way. You typically make a dynamic stamp by first creating a static stamp, and then manually modifying that static stamp. So, did she create a static stamp first? and does this static stamp show up where it should on the stamp menus? This is the starting point for a dynamic stamp, and the first thing that should be checked before adding dynamic features to the stamp file. See the link below for the "All About PDF Stamps" book. You'll find everything you need to know about creating stamps there.
    BTW: it is not a good idea to add new custom stamps to the built-in stamps, and especially if it means editing the original built-in dynamic stamp file. It is much better to create your own stamp categories.
    You also need to restart Acrobat after creating the dynamic stamp file.
    Thom Parker
    The source for PDF Scripting Info pdfscripting.com
    All About PDF Stamps in Acrobat and Paperless Workflows - THE BOOK!
    The Acrobat JavaScript Reference, Use it Early and Often
    Then most important JavaScript Development tool in Acrobat
    The Console Window (Video tutorial)
    The Console Window(article)
    Having trouble, Why Doesn't my Script Work?

  • [bug locked] Creating custom dynamic stamp Acrobat 9

    I am new to Acrobat and I am trying to create a custom dynamic stamp. In searching I found instructions using Acrobat 8 but these instructions don't work for version 9. Can someone help me with creating a dynamic stamp in version 9?
    Thank you.

    Did you try searching the Acrobat 9 help ? I did there is info there and if
    you want more (this one for livecycle);
    <http://www.adobe.com/devnet/livecycle/articles/lc_custom_stamp_tip.pdf>
    Please note: I read this Forums through e-mail. If you respond to me; please
    quote, otherwise I have no idea whom your response is addressed to or the
    context. This is all thanks to how this forum doesn't work properly, yet.
    Regards,
    S.D.A. (Stephen)

Maybe you are looking for

  • Text message options LG Revolution

    I am just trying to understand what a symbol means.  I'm thinking that I just recently changed settings to "Request a deliver report for each message you send". When I send a text to someone who is in my contacts but not a verizon customer there is a

  • How can I change the Background in a text-field into lets say grey?

    I created a text field and now I would like to not have the background in white. I did not figure out yet how I can do this. Also the help program did not help. Does anybody know how this works? Thanks a lot. Many greetings!

  • The export of a Crystal Reports to MS Word creates big files

    Hi all, if I export a report to pdf the file size is 72 KB . But if I export to Microsoft Word (97-2003) format, the filesize amounts to 1,35 MB. After I opened the exported document in MS Word and saved it with a new name, the size is only 176 KB. I

  • How to use STR function in expressions

    I'm having trouble trying to: a) concat 2 string + format specifiers like sprintf() does b) build 1 log string without weird characters being placed in the string as follows: str(global.name, "UseFile=1,File=c:\test.txt,Pgro=%s") there is a wierd cha

  • How to integrate Sharepoint into EP7.0?

    Experts: We have a requirement to make our company portal as the entry point of Sharepoint where tons of documentation resides. At the same time, we want that the Trex on our EP can index the document on Sharepoint. Could you direct me to some how-to