Time and Date Stamp Format and User name

Hi All,
I am very new to adobe acrobat so forgive my ignorance.  I am trying to add a date and time stamp to pdf files using adobe acrobat so that when they are printed using adobe acrobat the print date will be automatically added.  First I have found the below script on the forum which is entered as a field, will this work using acrobat version 5 or version 7?  Also i believe that the date format is 10/01/2009.  How can I change this so that it will be in the 01 October 2009 and 24 hour clock format?  Finally how do I also add some descriptive text before the date and time i.e. 'print date' and 'not valid 24 hours after printing'?
var f = this.getField("today");
f.value = util.printd("mm/dd/yyyy
h:MM tt", new Date());
One last question is there a way to add a user stamp to a pdf so that when the document is printed out the user's name is printed i.e. 'printed by J Smyth'.
Many thanks,
John

As noted, you need to change the formatting string to generate the date appearance as you need. You can add additional text to this string using the concatenation string operator, '+'. So you can do:
var f = this.getField("today");
var sDate = util.printd('dd mmm yyyy HH:MM tt", new Date())
f.value = 'Print date: ' + sDate + ' not valid 24 hours after printing';
All of the above information is covered in Adobe's freely down loadable Acrobat JS API and there are additional resources for JavaScript programing at the Acrobat Users Community and Planet PDF.
Accessing the 'identity' object is more complex. First, all users will need to complete the 'Identity" information for the application's preferences, as only the login name is picked up from the OS. Then each user will need to have an application folder level JavaScirpt installed on their computer to capture this information during the application initialization of Acrobat/Reader
// Folder level script to create an application level variables for the "identity" objects properties
var Identity = new Array(); // array for the identity objects elements
Identity.Corporation = identity.corporation;
Identity.Email = identity.email;
Identity.LoginName = identity.loginName;
Identity.Name = identity.name;
// or
var Identity = new Array();
for (i in identity)
Identity.i = identity.i;
You can then access the items in a PDF  by adding the array element name to the Identity array:
// set a fied's value to the value of:
this.getField("loginName").value = Identity.LoginName;
this.getField("name").value = Identity.Name;
this.getField("by").value = "By: ";
this.getField("by").value += Identity.Name;
You can find the necessary JavaScript folders for Acrobat using the following code in Acrobat's JavaScript debugging console:
app.getPath("app","javascript");
app.getPath("user","javascript");

Similar Messages

  • Every time i put in my apple user name and password its telling me it's incorrect. can someone help me

    Every time i put in my apple user name and password its telling me it's incorrect. can someone help me

    Yep, as Michael mentioned, iTunes is accessing the internet matching the total bytes of the CD to the data base. Happens to me when I burn a disk in Roxio Toast 7, then mount it to listen to the recording in iTunes. Some of the strangest names appear.
    At first I couldn't imagine where these exotic names were coming from until I realized the app. was accessing the Gracenote CDDB (CD database). Unfortunately, you cannot deselect this process within iTunes. As Michael suggested disconnect your machine from the Internet before inserting the CD.

  • How do I add a time and date stamp onto my pictures?

    Can anyone tell me how to place a time and date stamp on all my pictures?

    DTRAND wrote:
    How do I go about creating a script, how do I run it, and where do I run it
    (ie: exactly the steps)... sorry I am new to this.
    You don't need to learn scripting. Just ask in the scripting forum if they can help you.
    They will point you to an existing one or might even do one for you.
    http://forums.adobe.com/community/photoshop/photoshop_scripting

  • How do I keep the time and date stamp of my photo when exporting from iphoto

    Hi,
    I notice the time and date stamp changed when I exported the photos from iPhoto 11 to a external HDD.
    When I looked at the information about the exported photos on my external HDD the time and date changed to the time and date of when I exported the photos form iPhoto instead of keeping the time and date information of when the photo was taken as it appears in iPhoto.
    I thought the time and date stamp is in the meta data of the photo file and can't be changed, am I correct?
    Thanks,

    Kyzelios,
    How can view the meta data from "finder" or do I need a 3rd party app?
    "Get info" function only gives me the creation date which is the export date and time.

  • How do I make the time and date stamp correct for my documents, songs in itunes, etc.

    No matter when I add a song or save a document it says it was added/saved on 1/5/2011. It would be great if somehow I could get back the dates and times that things were added, but I know that may be impossible. I just want a way to have the correct time and date stamp from now on. Finally it wasn't always like this, when I first got the computer everything was correct, I just started noticing it. Additionally my clock is correct, so I don't understand why things aren't saved according to the clock. Thanks in advance

    Resetting your Mac's PRAM and NVRAM

  • Search script generator for all objects and data (!) from a user/schema ?

    Is there a way to create a script which (when run) creates all the existing
    TABLES; INDEXES, KEYS and DATA for a specified user/schema ?
    This (PL-)SQL script should contain all INSERTS for the currently existing rows of
    all the TABLEs.
    When I use e.g. export to Dumpfile I have at first find all TABLEs and components
    which I want to dump. This is rather uncomfortable.
    I just want to specify the user name similar to
    createscript user=karl@XE outfile=D:\mydata\myscript.sql
    Is this somehow possible ?

    So that I understand your requirements exactly, are you asking for your script to ...
    1/ export from database A the entire schema of a specified user
    2/ drop all objects owned by that user in database B
    3/ import the objects from database A into database B
    If so, it sounds to me that a shell script that does a schema level export as Nicholas suggested, and then drops the user from database B using the cascade keyword (e.g. drop user username cascade), recreates the user and then imports the export file into B should do the trick.
    I don't think searching for individual tables and creating the statements to recreate them is the best idea.
    Hope that helps
    Graham

  • Can itune and ipad have the same user name?

    Setting up new ipad, can ipad and itunes have the same user name being my email? 

    What do you mean by "user name"? They can, probably will, use the same iTunes Apple ID, if that's what you're asking.

  • MacBook Pro 10.6.8  My @me account has been wiped of all mail, will not send or receive and iCal will not recognise user name or password even though i haven't changed it.  All this after a scheduled software update. Any ideas??

    MacBook Pro 10.6.8  My @me account has been wiped of all mail, will not send or receive and iCal will not recognise user name or password even though i haven't changed it.  All this after a scheduled software update. Any ideas??

    kwmlr439 wrote:
    CSOUND Read the title please:
    Re: Macbook Pro 10.6.8 RAM Upgarde to 8 GB
    The amount of RAM is not dependant on the operating system. It is all about the model of you Mac.
    10.6.8 is the version of OS X that is installed on your system. It has no real baring on the amount of RAM that CAN be installed.
    Personally I have never had good luck with Corsair RAM. I have always had good luck with Crucial and Kingston.
    Message was edited by: Shootist007
    Message was edited by: Shootist007

  • My PC cannot find my Mac and also it ask for a password and I put it in and tell Logon failure:unknown user name or bad password

    I need some help on my MAC about them problem that I have and the question is: My PC cannot find my MAC and it ask a question  about putting in the password and I did it come back and said: Logon failure: unknown user name or bad password.
    Thank You
    Lumpy

    You have to explain a little more fully what you are trying to do and what protocol.  Whats your set up?

  • I am not able to signin using apple ID in imassge and face book it says user name or password wrong plz help

    I am not able to signin using apple ID in imassge and face book it says user name or password wrong plz help

    I think there has been a change in the password requirements for apple ID's.  I think it now needs to be eight characters long and have at least one capital letter and one number.  Got to appleid.apple.com and then to manage your account and change your password to something that meets the requirements I mentioned and see if that helps

  • I am trying to get into my iCloud account and it is saying invalid user name and password

    I am trying to get into my iCloud account and it is saying "Invalid User Name or Password". I thought that you use your Apple I.D. and password, but that does not work! So, how do you reset your user name and/or password if you don't know what ones ICloud is seeking....

    After resetting your password you might then need to log out of your account on your device by phone on your id in Settings > Store (Settings > iTunes & App Stores if it's on iOS 6) and then log back in so as to 'refresh' the account on it
    If that doesn't fix it then you might need to contact iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • I have had my Iphone 5s for 2 months and all the fotos and data (fotos and data were not backed up) that I had were erased after I restored it with my old Iphone 4s backup, can I get my unsaved fotos and data back? and if I can, how?

    I have had my Iphone 5s for 2 months and all the fotos and data (fotos and data were not backed up) that I had were erased after I restored it with my old Iphone 4s backup, can I get my unsaved fotos and data back? and if I can, how?

    If you never backed up your phone to iTunes and never backed it up to iCloud all of your content is gone forever.

  • Time Capsule won't accept my user name and password for access - Help!

    Hi all,
    My Time Capsule seemed to stop working one day and I had to do a hard reset with the little button at the back. After that it worked and I restored my wireless network settings but now I can't access the Time Capsules hard drive with Time Machine.
    When I try to choose it as my Backup Disk in the Time Machine preferences it says "Enter your user name and password so Time Machine can access the file server "Our Time Capsule" (the name of my time capsule). However, every time I try to enter my password I get "Sorry, you entered an invalid username or password".
    I've already tried several resets of the Time Capsule and I've also tried logging on my computer as the Root user and changing my administrator account password back and forth but no go.
    Help! and Thanks.

    Norman & Harry,
    Consider the following:
    *_Time Capsule Keeps Asking Me For a Password_*
    It will be important to know what is going on, or what you are doing when it asks for the password. Is it asking for a password only when Time Machine attempts a backup? Consider this:
    It is NOT your username and password it wants when you try accessing the Time Capsule. (I know... it SAYS "username and password") But it means the Time Capsule's Name and Password.
    You will find that by launching Airport Utility.
    Select the TC on the left.
    Click "Manual Setup".
    Click the "Time Capsule" Tab.
    You will see "Time Capsule Name:" and "Time Capsule Password".
    Make sure “Remember password in keychain" is checked.
    That is the information you need to enter when it asks for "username & password."
    *I Don’t Remember What My Time Capsule Password Is*
    You can see what your current TC password is by going into Keychain.
    Open your Keychain and select "login" from the Keychains pane in the top left. Highlight "Passwords" in the Category pane from the lower left.
    Sort all the items by Kind. Note everything labeled "Airport...". How many do you have listed? There should only be one "Airport base station password" for each base station that you have active. Also, there should only be one "Airport network password" for each network you have created. If there are more than these, then delete all but the ones with the most recent Modification date.
    To see what passwords are being stored, double-click your Time Capsules' entry. A new window will appear.
    Put a check beside "Show Password". You may be asked for your own Admin password so enter that.
    Now the Password field will display the password you entered into Airport Utility for your Time Capsule
    *It Still Won’t Accept the TC Name and Password*
    Launch Airport Utility --> Manual Setup.
    Select "Disks" in the tool bar above.
    Click the "File Sharing" tab.
    Is "File Sharing" checked? It should be.
    What is selected beside "Secure Shared Disks"? If it says "With Accounts" or "With a Disk Password" then the system will ask you for a password every time it mounts the TC hard disk. If you switch it to "With Time Capsule Password" then use the password you designated earlier in the “Time Capsule" tab. It should only ask you once and then never again - because you had checked "Remember password in keychain".
    If you have made any changes then click "Update".
    Let us know if this resolves your issue.
    Cheers!

  • Time and date stamp

    Hello. I am trying to add a time/date stamp to my inputs to LV. There are some comments here that I went through but they didn't seem to fit my application. With each tick of the timer I am collecting 5 inputs. Whate I would like is for the final column to have a time/date stamp. I have tried using the Vi's which seem appropriate for this however, they dind't have the affect I had hoped. All I want is for each tick of the clock and a sample is collected, to have he time stamp corresponding to that data.
    Thank you

    Yes, I've understood what you mean for a bit now and I've been telling you what to use, even linking to VIs.
    Here is a step-by-step list of what you need to do to get your data to be in the same format as your timestamp:
    Open the Timing palette, click Get Date/Time in Seconds, place it inside your loop.
    Open the Timing palette, click Get Date/Time String, place it inside your loop.
    Wire the output of Get Date/Time in Seconds to Get Date/Time String.
    Concatenate the outputs of Get Date/Time String
    Place Number to Fractional String inside your loop.
    Wire array of data (capacitance, dissipation factor, voltage) to the Number to Fractional String VI
    You now have all of your data and timestamps in the form of strings. Build an array of all of these strings and write to spreadsheet. If you want the timestamp as the last column, then build the array with the timestamp after the data. Surely you can figure that part out now.

  • Does Firefox have a feature like the software named Robo-form, where like if you wanted to go to your gmail, you could click on one thing, and not have to inter user name and password every single time?

    Some times in Firefox I see pop ups where Firefox is allowing you to make Firefox remember a password or some such thing like that.
    I want to go to an account or web site where I have already registered, type in my user name and password and then before I log in, have Firefox remember my log in information, so that in the future I could go to a folder let's say, that has a list, and just click on the one item, spending less time logging in at places.
    Is this something Firefox does, or do I have to say, use a software like Robo-form?

    https://support.mozilla.com/en-US/kb/Remembering+passwords

Maybe you are looking for