Adding a date stamp using Acrobat XI

Hi there
I want to add a date stamp to a voucher PDF, so that when it is downloaded and printed out, it displays today's (system) date.
I followed the tutorial at: http://tv.adobe.com/watch/acrobat-x-tips-tricks/quick-tip-how-to-add-a-date-stamp-to-a-for m/   ,double checked the javascript, and this seemed to work. But when I checked the following day, the date displayed was still set at yesterday's date. It had not moved forward. I tried saving as Reader Extended/Enable More Tools, but that didn't work either and I think it removed the JavaScript altogether.
In the original, I went to  Edit All JavaScripts and this is the code that was there:
//-----------------Do not edit the XML tags--------------------
//<Document-Actions>
//<ACRO_source>Document Will Print</ACRO_source>
//<ACRO_script>
/*********** belongs to: Document-Actions:Document Will Print ***********/
var f = this.getField("DatePrinted");
f.hidden = false;
f.value = "Printed on: " + util.printd("mmm dd, yyyy", new Date());
//</ACRO_script>
//</Document-Actions>
Can anyone please help?

Did you print the PDF and observed what happened.
The video is about putting the date printed in the PDF just before the PDF is sent to the printer.
I would have coded it as follows:
var f = this.getField("DatePrinted"); // field object
f.display = display.noView; // only print the field
f.value = "Printed on: " + util.printd("mmm dd, yyyy", new Date()); // set the value of the field
The 'hidden" property of the field is an old method and discouraged along with the 'print' property. Both of these can be manipulated with the "display" property.
The "Will print" action only occurs when a print action is initiated
Do you want this to change when the PDF is opened? Then you need to create a page open or document level script.

Similar Messages

  • How to enter a date stamp using formscentral?

    I've been trying to enter a date stamp using formscentral but have no such luck. Whenever I enter one in using acrobat pro I get the error that I don't have sufficent privleges due to adobe keeping the integrety of the form...Anybody have any ideas?

    See this FAQ which explain how to modify a FormsCentral PDF in Acrobat
    http://forums.adobe.com/docs/DOC-3661
    Gen

  • Adding time/date stamp

    Hello,
    I have several MPEG2 clips I'd like to add a running time/date stamp to.  Can I do this with Premiere Elements?
    Thanks

    Hm-m, not sure what to suggest, if DVDate will not work for you.
    When I need the TimeCode displayed, I use PrPro, or After Effects, as each has a very good TimeCode Effect.
    Maybe others will have some specific input for PrE.
    Sorry that did not work for you.
    Good luck,
    Hunt

  • How can i put a time/date stamp in Apple contacts, "Note"

    how can i automatically put a time/date stamp in Apple contacts, "Note"
    ei , when i enter a new note to a contact. I want the time and date to automatically show at each note.

    This is not a feature in Contacts. I suggest you send Apple feedback to let them know you would like to see this option.
    http://www.apple.com/feedback/macosx.html
    You can easily add the date stamp using an app like TextExpander.
    Read this article about using snippet keepers. http://www.macworld.com/article/151286/2010/05/clipboardmanagers word

  • Date Stamp MySql-PHP

    Hi All:
    I have a form that I using to upload my portfolio using the
    php insert record function of Dreamweaver. How can I make it add
    the date stamp using dreamweaver? Is the a piece of code some can
    provide? My thought was add some kinda of hidden field and do
    something with that. Any help would be appreciated.

    .oO(cupaball)
    >Great! Where does that go in all this Dreamweaver code?
    >
    > if ((isset($_POST["MM_insert"])) &&
    ($_POST["MM_insert"] == "portfolio")) {
    > $insertSQL = sprintf("INSERT INTO port_tb (comp_name,
    design_type, URL,
    >short_des, long_des, thumbnail, medium_pic, large_pic,
    long_pic) VALUES (%s,
    >%s, %s, %s, %s, %s, %s, %s, %s)",
    > GetSQLValueString($_POST['comp_name'], "text"),
    > GetSQLValueString($_POST['design_type'], "text"),
    > GetSQLValueString($_POST['URL'], "text"),
    > GetSQLValueString($_POST['short_des'], "text"),
    > GetSQLValueString($_POST['long_des'], "text"),
    > GetSQLValueString($_POST['thumbnail'], "text"),
    > GetSQLValueString($_POST['medium_pic'], "text"),
    > GetSQLValueString($_POST['large_pic'], "text"),
    > GetSQLValueString($_POST['long_pic'], "text"));
    Where do you want the date to go? The date column has to be
    listed
    inside of the parentheses after "INSERT INTO port_tb", the
    NOW() call
    inside the VALUES parentheses at the same position. Here's an
    example
    with the date at the first position (adjust the name as
    necessary):
    $insertSQL = sprintf("INSERT INTO port_tb (dateField,
    comp_name,
    design_type, URL, short_des, long_des, thumbnail,
    medium_pic,
    large_pic, long_pic) VALUES (NOW(), %s, %s, %s, %s, %s, %s,
    %s, %s,
    %s)",
    ... // all the rest
    Micha

  • Adding Current Date Using A Prologue File When Converting to a PDF

    I'm trying to embed the current date on a postscript file (.ps) to pdf conversion using a prologue file (prologue.ps) in a certian position on the page. What is the script necessary to acommplish this task? Is this similar to the case that is still open regarding a "dynamic date stamp"?

    Hi Bill -- thanks for your reply!
    When I check the Document Properties on Acrobat I can see that the fonts used in the document (Cambria, Times and Windings) are listed as "Embedded Subset" in the Fonts panel. The machine it was created on did use an earlier version of OS X and an old version of Word, but it seems to have the proper fonts...
    -nick

  • How to get the most current file based on date and time stamp using SSIS?

    Hello,
    Let us assume that files get copied in a specific directory. We need to pick up a file and load data. Can you guys let me know how to get the most current file based on date and time stamp using SSIS?
    Thanks
    thx regards dinesh vv

    hi simon
    i excuted this script it is giving error..
       Microsoft SQL Server Integration Services Script Task
       Write scripts using Microsoft Visual C# 2008.
       The ScriptMain is the entry point class of the script.
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    namespace ST_9a6d985a04b249c2addd766b58fee890.csproj
        [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
        public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
            #region VSTA generated code
            enum ScriptResults
                Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
                Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
            #endregion
            The execution engine calls this method when the task executes.
            To access the object model, use the Dts property. Connections, variables, events,
            and logging features are available as members of the Dts property as shown in the following examples.
            To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
            To post a log entry, call Dts.Log("This is my log text", 999, null);
            To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
            To use the connections collection use something like the following:
            ConnectionManager cm = Dts.Connections.Add("OLEDB");
            cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
            Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
            To open Help, press F1.
            public void Main()
                string file = Dts.Variables["User::FolderName"].Value.ToString();
                string[] files = System.IO.Directory.GetFiles(Dts.Variables["User::FolderName"].Value.ToString());
                System.IO.FileInfo finf;
                DateTime currentDate = new DateTime();
                string lastFile = string.Empty;
                foreach (string f in files)
                    finf = new System.IO.FileInfo(f);
                    if (finf.CreationTime >= currentDate)
                        currentDate = finf.CreationTime;
                        lastFile = f;
                Dts.Variables["User::LastFile"].Value = lastFile;
                Dts.TaskResult = (int)ScriptResults.Success;
    thx regards dinesh vv

  • Adding Custom Stamps in Acrobat Reader X

    I'm wondering how users of Acrobat Reader X can add their own custom stamps to documents. I create collateral for sales people across the U.S. who like to add their own contact information to the pieces. They were doing this by using the custom stamp feature that I enabled using Acrobat Pro 9. One of our sales folks decided to update his Acrobat to the newer version and it doesn't seem to have the same capabilities. I know there is a Signature tool, but that isn't quite the same. Can anyone help me figure this out? I'd appreciate it.
    Thanks.
    Maureen

    Why did you post this in the forum for "Acrobat Feature Requests" ? You may use the forum for Adobe Reader.

  • Help adding current Date and Time stamp to file name

    I need help with my script adding current Date and Time stamp to file name.
    This is my file name = myfile.htm
    I would like to save it as = myfile.htm 8/29/2007 11:41 AM
    This is my script:
    <script>
    function doSaveAs(){
         if (document.execCommand){
              document.execCommand('SaveAs','1','myfile.htm')
         else {
              alert("Save-feature available only in Internet Exlorer 5.x.")
    </script>
    <form>
    <input type="button" value="Click here to Save this page for your record" onClick="doSaveAs()"
    </form>
    Thank you

    I agree, I guess I overlooked that!
    I would like to save it as = myfile 8/29/2007 11:41 AM .htm
    I need help with my script adding current Date and Time stamp to file name.
    This is my file name = myfile.htm
    I would like to save it as = myfile 8/29/2007 11:41 AM .htm
    This is my script:
    <script>
    function doSaveAs(){
    if (document.execCommand){
    document.execCommand('SaveAs','1','myfile.htm')
    else {
    alert("Save-feature available only in Internet Exlorer 5.x.")
    </script>
    <form>
    <input type="button" value="Click here to Save this page for your record" onClick="doSaveAs()"
    </form>

  • Using Action Wizard is possible to add the step to date stamp the pdf

    Using Action Wizard is it possible to create the steps:
    Add text to date stamp
    Javascript
    Encrypt
    Save

    Hi,
    We cannot display the year information on Windows 8.1  Lock Screen.
    The behavior is by design.
    Thanks for your understanding.
    Regards,
    Kelvin Xu
    TechNet Community Support

  • How can I edit large amount of data using Acrobat X Pro

    Hello all,
    I need to edit a catalog that contains large amount of data - mainly the product price. Currently I can only export the document into excel file and then paste the new price onto the catalog using Acrobat X Pro one by one, which is extremely time-consuming. I am sure there's a better way to make this faster while keeping the accuracy of the data. Thanks a lot in advance if any one's able to help! 

    Hi Chauhan,
    Yes I am able to edit text/image via tool box, but the thing is the catalog contains more than 20,000 price data and all I can do is deleteing the orginal price info from catalog and replace it with the revised data from excel. Repeating this process over 20,000 times would be a waste of time and manpower... Not sure if I make my situation clear enough? Pls just ask away, I really hope to sort it out, Thanks! 

  • Using Acrobat Standard 9  Adding Check Boxes

    Have been using AA Std 9 for some time and all of sudden I cannot use the add check boxes to forms with any accuracy.  It is not an issue with the mouse.  Have downloaded patches but still cannot add fields where they need to be.  Major impact on productivity!  Ideas?

    I do have Internet Explorer 9 and I was able to print web pages correctly following  your suggestions.
    Thanks for your help.
    Date: Sat, 12 Nov 2011 06:53:59 -0700
    From: [email protected]
    To: [email protected]
    Subject: Printing web page to pdf file using Acrobat Standard 9
        Re: Printing web page to pdf file using Acrobat Standard 9
        created by Bill@VT in Acrobat Windows - View the full discussion
    There were problems with IE9 on it's initial release and that may be what you are seeing if that is the browser (you did not indicate the browser and that may be a key). If you have a different browser you might try that one with the same pages to see if it browser related.
    By saying garbled it sounds like the fonts did not make it or you have selected "Use Local Fonts" in Acrobat. Try checking the latter first. Then check if the fonts are embedded in the PDF by checking the document properties (ctrl-D). If they are not, go back to the browser and select the press or print job options before printing and see if they get embedded and if your problem is resolved.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4021509#4021509
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4021509#4021509. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Acrobat Windows by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Date stamp photos in Elements 5. using.EXIF data.

    Help please: Is there an extention available for elements 5. that will enable me to copey the date in the EXIF data simply with a few clicks onto the bottom right of my photos, like my old 35 mm camera used to.
    I still prefer to have my pictures printed and put them in a hard back album, to add imformation afterwards is very time consuming,
    Barry. UK.

    Hi there
    I am in the same boat as Barry. When I try to run D2C, I get the same message (except the number given is 0xc0000135).
    I get the same result from stripIPTC.
    I am running Windows XP Home. Would it help to play around with "compatibility modes"?
    I am surprised that a convenient method of date stamping images is not more commonly provided as there must be many situations, such as documenting the progress of a building or landscaping project. Particularly if there is some dispute, photographs with reliable dates and times recorded can be very valuable.

  • Using Acrobat Pro how do I lock the fillable fields once the data is collected?

    Using Acrobat Pro how do I lock the fillable fields once the data is collected?

    Hi,
    Have a look at Paul's LockAllFields solution. You can download it in Paul's post here: http://forums.adobe.com/message/3168183#3168183.
    I have a version of it here as well: http://assure.ly/yDtfsM.
    Hope that helps,
    Niall

  • Mail.app using Day of the Year for date stamps.  Whaaaat?

    Here's a new one, for me anyway:
    It seems all of my emails in the mail.app have suddenly been stamped with dates that use the day of the year, rather than day of the month, i.e:
    37 February, 2011, instead of 6 February, 2011.
    This date format appears in both the Viewer Window and Message Headers, and is seen in both sent/received dates, on all saved/new messages (all the way back to a few from 2001) and in both of the mail.app accounts I use: one straight-up gmail, the other a worldshare.net address, also using the Gmail server.
    This behavior is not present when reading through webmail, nor is it a problem on my iPod Touch.
    Any thoughts?
    Thanks.

    It was all in Language and Text pref pane. I was pulling day of year, rather than day of month.
    Big ups to ibook_Steve over at MacNN!

Maybe you are looking for

  • Copy control from quotation to sales order

    HI , Though my quoation is incomplete it can be copied into sales order, kindly suggest me a so;ution where in incomplete quotaion cannot be copied into sales order.Kindly explain me teh setting in TCODE (VTAA) STEP BY STEP. Regards Sunaina

  • Data sometimes not showing

    Hi All, I have a strange problem. I have made a workbook with multiple sheets. Some of these sheets report on the same field from the database. I now have the strange issue that sometimes in one of the sheets the field is filled while in another shee

  • WEBUTIL Install/java init error

    I am trying to run WEBUTIL in my pc in a development environment but can get the applet to start when I add webUtilArchive=/forms90/webutil/webutil.jar,/forms90/webutil/jacob.jar to my formsweb.cfg file. If I add it I get a java.lang.ExceptionInIniti

  • SYNC index

    Can I use trigger to sync the text index, I created a trigger as following, but didn't work, pls help. Thanks. Create or replace trigger sync_idx_html_bfile After insert on lucy.html_bfile For each row Begin Ctx_ddl.sync_index(idx_html_bfile); Dbms_o

  • Fail to initialize dialogue.

    When I start PS the following dialogue appears.  "Could not initialize Photoshop because of a program error."  This is not a very helpfull dialogue