Filename in footer

In Excel, I can easily insert the filename as a footer. It's part of the pull-down menu for footer/header. Can I do this in Numbers?

Hi Christie,
For this feature you must go backwards in time to Version 2 of Numbers. In Version 2, you would set the text insertion cursor in the Header or Footer field and then from the Menu line: Insert > Filename. Then double-click the filename token that you inserted and choose the options for displaying the full path and for displaying the extension.
Jerry

Similar Messages

  • Filename in Footer in Pages 5

    In Pages 09 I could add a filename to the footer. If I saved a document with a new filename, this would then be automatically updated in the footer in the new document.  I cannot find out how to update the Filename in pages 5, other than doing it manually.
    Is this yet another example of the new iWork being dumbed down?  Also missing is the ability to use keyboard shortcuts for formatting, and a lot of the Inspector features.
    Do I have to go back to Pages 09 for all the missing features?

    Feature removed in Pages 5.
    Pages '09 should still be in your Applications/iWork folder.
    Trash/archive Pages 5 after Exporting any Pages 5 docs to Pages '09 files.
    Then rate/review Pages 5 in the App Store.
    Peter

  • Path and filename in footer

    If it is possible, how do I cause Acrobat 9 to report the current path and filename in the footer?
    Thanks!

    In a document-level JavaScript, add the following code, outside of a function definition:
    // Code in document-level JavaScript
    getField("PATH").value = path;
    where "PATH" is the name of a read-only text field that you've added to the bottom of each page.

  • Combine PDF's and put filename in footer of each page

    Hello,
    I've got about a 1000 individual pages to print,
    so I figured in order to avoid having to click each page open and print it,
    I can combine the documents into one document,
    and only launch the print command once,
    and then have a coffee until its is finished
    But I'd like Acrobat to actually put the filename of each document in the footer of the corresponding page when I combine the documents; so I know afterwards which page is from which document. Is there a simple (easy) way to do this;
    or will I have to enter the footer into each page separately?
    Thanks,
    Jan

    Then go to Advanced - Document Processing - Batch Processing and then create
    a new batch process and select the command you want to use (probably add
    header/footer or something similar) and the input folder and save options.
    That's it, basically.

  • How to auto add in pdf filename (shown in footer) by using Java Script?

    In order to have nice tracking a document, I want to print the file name as a header or footer when printing the documents. 
    How can this be done?  
    Found a perfectly nice post related to same issue
     http://forums.adobe.com/thread/302996 
     (Many thanks on every contribuitors inside that posts)  
     In the above post,  found that ##Reinhard had shared some well nice scripts for "enable to put in filename in the footer for every document, just by 1 simple click in each documents"  
    For the time being, 
    if i would like to generate a script that allowing 
    1) Only adding / showning the pdf filename in the footer
    2) Auto Run/Execute on this script for all documents, which means without any click but it will auto showing the "filename at footer" when any document opening.  
    Hope any experts can give a help on this.   
    PS: Currently using Adobe Acrobat 10 & Reader 11 // OS = Windows 7 
    Many thanks ^^

    My code for above method is Floor #2
    var FileNM = this.documentFileName;
    for (var p = 0; p < this.numPages; p++)
    var fd = this.addField("xftDate", "text", p, [30,15, 290,30]);
    fd.textSize=5; fd.value = " (" + FileNM +")";
    It works for me & my PC, however I unable to applied same things into a JavaScript.js file
    Hope any experts could help and advice.
    Many thanks.

  • Inserting filename and page numbers into multiple PDF files?

    Have since seen this thread, BUT still interested in the syntax of the code
    to insert filename and page # into multiple files:
    http://forums.adobe.com/thread/951925?tstart=0
    Good Evening (GMT!)
    I have approx 100 PDFs with one or two pages in each, they are English translations
    of Russian language test certificates and the formatting/feel of the originals is lost in
    the translations. The only real link between the two sources is the "_RUS" and "_ENG"
    filename suffixes and the common leading filenames otherwise. Thus I need to maintain
    a record of the filename in any page I print off, should there be a need to refer back to
    the original if the translation is open to artistic licence.
    I have a script (below) that happily adds a page x/y and filename into the active file,
    what I would like is to be able to do this insertion into multiple files as defined by a
    portfolio or a selection via a select files dialogue box
    I am quite out of my depth now as my past skirmishes with JavaScript have set
    cookies and tweaked a few other browser doodads in webauthoring
    Any help most appreciated on this one...
    Kind Regards
    Dr B
    Southampton
    UK
    NB the filename inserted may be corrupted as a result of my last tweakings
    will sort that one out ASAP....
    ================================
    // SetRemoveFooter
    // Modified as marked
    // Menu item generation
    app.addSubMenu({ cName: "Footer",cUser: "Set/Remove Complex Footer", cParent: "File", nPos: 20 });
    app.addMenuItem({ cName: "Set Filename", cParent: "Footer", cExec: "SetFooter(1)"});
    app.addMenuItem({ cName: " -> Set Date .... centered", cParent: "Footer", cExec: "SetFooter(2)"});
    app.addMenuItem({ cName: " -> Set Date .... right", cParent: "Footer", cExec: "SetFooter(3)"});
    //add page x of y
    app.addMenuItem({ cName: "Set Page ", cParent: "Footer", cExec: "SetFooter(4)"});
    app.addMenuItem({ cName: "Set Both", cParent: "Footer", cExec: "SetFooter(5)"});
    app.addMenuItem({ cName: "-------------------------------", cParent: "Footer",cExec: "{}"});
    app.addMenuItem({ cName: "Remove Both", cParent: "Footer", cExec: "RemoveFooter(5)"});
    app.addMenuItem({ cName: "Remove Date Time (Filename)", cParent: "Footer", cExec: "RemoveFooter(1)"});
    app.addMenuItem({ cName: "Remove Page", cParent: "Footer", cExec: "RemoveFooter(4)"});
    //=====================================================================================
    //Set/remove Footer
    function SetFooter(ARG)
    var re = /.*\/|\.pdf$/ig;
    var FileNM = + this.path.replace(re,"")+".pdf";
    var Path = this.path;
    var AcDate = new Date();
    var AcDateFormat = "dd/mm/yyyy"
    var Box2Width = 100
    for (var p = 0; p < this.numPages; p++)
    var aRect = this.getPageBox("Crop",p);
    var TotWidth = aRect[2] - aRect[0]
    if (ARG<=3 || ARG==5)
    {var fd = this.addField("xftDate", "text", p, [30,15, TotWidth-30-30,30]);
    //print output?
    fd.value = util.printd(AcDateFormat, AcDate) + " (" + FileNM +")";
    // TEXT SIZE SETTING
    fd.textSize=12; fd.readonly = true;
    if (ARG==1){ fd.alignment="left" };
    if (ARG==2){ fd.alignment="center" };
    if (ARG==3){ fd.alignment="right" };
    if (ARG==4 || ARG==5)
    {var bStart=(TotWidth/2)-(Box2Width/2)
    var bEnd=((TotWidth/2)+(Box2Width/2))
    var fp = this.addField(String("xftPage"+p+1), "text", p, [bStart,30,bEnd,15]);
    // print output?
    fp.value = "Page: " + String(p+1)+ "/" + this.numPages;
    // TEXT SIZE SETTING
    fp.textSize=12; fp.readonly = true;
    fp.alignment="center";
    //==========================================================================
    function RemoveFooter(ARG)
    if (ARG<=3 || ARG==5) {var x = this.removeField("xftDate");}
    if (ARG==2 || ARG==5) {for (var p = 0; p < this.numPages; p++)
    var x = this.removeField(String("xftPage"+p+1)); }
    will

    Putting this in a batch file within the automation function of Acrobat
    delivers the goods, I need to investigate the formatting of the output to
    get them to line up, have taken the middle ground and gone for a central
    position for the page x/y text...... some lines are redundant
    Dr B
    ===========================================
    var re = /.*\/|\.pdf$/ig;
    var FileNM = this.path.replace(re,"")+".pdf";
    var Path = this.path;
    var AcDate = new Date();
    var AcDateFormat = "yyyy/mmm/dd  HH:MM"
    var Box2Width = 50
    for (var p = 0; p < this.numPages; p++)
    var aRect = this.getPageBox("Crop",p);
    var TotWidth = aRect[2] - aRect[0]
           var fd = this.addField("xftDate", "text", p, [30,15,
    TotWidth-30-30,30]);
           fd.value =  FileNM;
           fd.textSize=12; fd.readonly = true;
           fd.alignment="left";
    var bStart=(0);
    var bEnd=(TotWidth);
           var fp = this.addField(String("xftPage"p1), "text", p,
           fp.value = "Page: " + String(p1) "/" + this.numPages;
           fp.textSize=12;  fp.readonly = true;
           fp.alignment="center";

  • HOW CAN I BATCH ADD ONLY THE FILENAME TO PDF?

    I saw a long thread about adding javascript code to insert date, time and filename. but it is an old thread that i cannot comment on.
    So please help me only add the filename to the footer
    This is the code that was poseted by Rindhard(sp?) This code adds all three.. I only want to have the filename but everytime I try to rem out a line it doesnt work.. i do not know java script obviously
    I want to add the filename in a calibri 12pt font
    thanks for any help!
    app.addSubMenu({ cName: "Footer",cUser: "Set/Remove Footer", cParent: "File", nPos: 20 });
    app.addMenuItem({ cName: "Set Date Time (Filename)", cParent: "Footer", cExec: "SetFooter(1)"});
    app.addMenuItem({ cName: " ->  Set Date .... centered", cParent: "Footer", cExec: "SetFooter(2)"});
    app.addMenuItem({ cName: " ->  Set Date .... right", cParent: "Footer", cExec: "SetFooter(3)"});
    app.addMenuItem({ cName: "Set Page centered", cParent: "Footer", cExec: "SetFooter(4)"});
    app.addMenuItem({ cName: " -> Set Page right", cParent: "Footer", cExec: "SetFooter(5)"});
    app.addMenuItem({ cName: "Set Both", cParent: "Footer", cExec: "SetFooter(9)"});
    app.addMenuItem({ cName: "-------------------------------", cParent: "Footer",cExec: "{}"});
    app.addMenuItem({ cName: "Remove Both", cParent: "Footer", cExec: "RemoveFooter(9)"});
    app.addMenuItem({ cName: "Remove Date Time (Filename)", cParent: "Footer", cExec: "RemoveFooter(1)"});
    app.addMenuItem({ cName: "Remove Page", cParent: "Footer", cExec: "RemoveFooter(4)"});
    //Set/remove Footer
    function SetFooter(ARG)
    var re = /.*\/|\.pdf$/ig;
    var FileNM = this.path.replace(re,"")+".pdf";
    var Path = this.path;
    var AcDate = new Date();
    var AcDateFormat = "yyyy/mmm/dd  HH:MM"
    var Box2Width = 50
    for (var p = 0; p < this.numPages; p++)
      var aRect = this.getPageBox("Crop",p);
      var TotWidth = aRect[2] - aRect[0]
      if (ARG<=3 || ARG==9)
       { var fd = this.addField("xftDate", "text", p, [30,15, TotWidth-30-30,30]);
          fd.value =  util.printd(AcDateFormat, AcDate) + "   (" + FileNM +")";
           fd.textSize=6; fd.readonly = true;
           if (ARG==1){ fd.alignment="left" };
           if (ARG==2){ fd.alignment="center" };
           if (ARG==3){ fd.alignment="right" };
      if (ARG==4 || ARG==5 ||ARG==9)
       {  var bStart=(TotWidth/2)-(Box2Width/2)
           var bEnd=((TotWidth/2)+(Box2Width/2))
           if (ARG==5){var bStart=(TotWidth-Box2Width-30); var bEnd=(TotWidth-30);}
           var fp = this.addField(String("xftPage"+p+1), "text", p, [bStart,30,bEnd,15]);
           fp.value = "Page: " + String(p+1)+ "/" + this.numPages;
           fp.textSize=6;  fp.readonly = true;
           fp.alignment="center";
    function RemoveFooter(ARG)
    if (ARG<=3 || ARG==9) {var x = this.removeField("xftDate");}
    if (ARG==4 || ARG==9)
       {  for (var p = 0; p < this.numPages; p++)
          {var x = this.removeField(String("xftPage"+p+1)); }

    Not sure what you mean by "-30 high and -30 from the right". Isn't this supposed to be left-aligned?
    Anyway, try this one:
    this.addWatermarkFromText({ cText: this.documentFileName.replace(/\.pdf$/i,""), cFont: "Calibri", nFontSize: 12,
        nHorizAlign: app.constants.align.left, nVertAlign: app.constants.align.bottom, nHorizValue: 30 , nVertValue: 30});
    If you want to customize it further, look up the addWatermarkFromText method in the reference files. All the parameters are specified there.

  • Help with Batch Labeler (extremely Urgent)

    Good Afternoon Eeveryone,
    I am in need of help to create a Batch file to stamp the filename of the PDF document in the document itself.
    This is for audit and control purposes.
    i have the following javascript to add the filename as a header.
    app.addSubMenu({ cName: "Header",cUser: "Set/Remove Header", cParent: "File", nPos: 20 });
    app.addMenuItem({ cName: "(Filename)", cParent: "Header", cExec: "SetHeader(1)"});
    app.addMenuItem({ cName: "-------------------------------", cParent: "Header",cExec: "{}"});
    app.addMenuItem({ cName: "(Filename)", cParent: "Header", cExec: "RemoveHeader(1)"});
    //Set/remove Header
    function SetHeader(ARG)
    var re = /.*\/|\.pdf$/ig;
    var FileNM = this.path.replace(re,"")+".pdf";
    var Path = this.path;
    var AcDate = new Date();
    var AcDateFormat = "yyyy/mmm/dd  HH:MM"
    var Box2Width = 50
    for (var p = 0; p < 1; p++)
      var aRect = this.getPageBox("Crop",p);
      var TotWidth = aRect[2] - aRect[0]
      if (ARG<=3 || ARG==9)
       { var fd = this.addField("xftDate", "text", p, [20,1600, TotWidth-30-30,30]);
          fd.value = "Nº:" + FileNM;
           fd.textSize=12; fd.readonly = true;
           if (ARG==1){ fd.alignment="left" };
           if (ARG==2){ fd.alignment="center" };
           if (ARG==3){ fd.alignment="right" };
      if (ARG==4 || ARG==5 ||ARG==9)
       {  var hStart=(TotWidth/2)-(Box2Width/2)
           var hEnd=((TotWidth/2)+(Box2Width/2))
           if (ARG==5){var hStart=(TotWidth-Box2Width-30); var hEnd=(TotWidth-30);}
           var fp = this.addField(String("xftPage"+p+1), "text", p, [hStart,30,hEnd,1450]);
           fp.value = "Page: " + String(p+1)+ "/" + this.numPages;
           fp.textSize=12;  fp.readonly = true;
           fp.alignment="center";
    function RemoveHeader(ARG)
    if (ARG<=3 || ARG==9) {var x = this.removeField("xftDate");}
    if (ARG==4 || ARG==9)
       {  for (var p = 0; p < this.numPages; p++)
          {var x = this.removeField(String("xftPage"+p+1)); }
    I found this on another Thread and made some changes to suit my needs, now i need this to reproduce to a large ammount of pdf files, and that works with adobe reader.
    i have this batch file that i also took from another thread, if i click on it it works fine, i change the directory where it sends the files but when i drop a file on it it gives a error saying it cant "create object acroexch.app"
    '//////  User settings /////////////////////////////////////////////////////////
    fileSaveDir = "c:\Temp"    '/->state an existing folder for saving changed files
    mode = 1         '/->  0=work hidden; 1= show acrobat
    test = 1             '/-> 0= don't show messages; 1=show messages
    '    // set WSH objects
    set oWsh = CreateObject ("Wscript.Shell")
    Set oArgs = WScript.Arguments
    Set fso = CreateObject("Scripting.FileSystemObject")
    '    // test basic files/folders
    if not fso.FolderExists(fileSaveDir) then : msgBox("Folder """ &fileSaveDir &""" don't exist") : wscript.quit : end if
    if oArgs.Count = 0 then :    MsgBox("Drag & Drop files on this") : Wscript.quit : end if
    '    // set acrobat basic objects
    Set App = CreateObject("Acroexch.app")
    if mode > 0 then app.show
    Set AVDoc = CreateObject("AcroExch.AVDoc")
    Set AForm = CreateObject("AFormAut.App") 'from AFormAPI
    '    // write  acro-js to a variable for later executing
    Ex = "  // set Date and filename as footer  "&vbLF _
      & "  var re = /.*\/|\.pdf$/ig;  "&vbLF _
      & "  var FileNM = this.path.replace(re,"""")+"".pdf"";  "&vbLF _
      & "  var AcDate = new Date();  "&vbLF _
      & "  var AcDateFormat = ""yyyy/mmm/dd  HH:MM"";  "&vbLF _
      & "  for (var p = 0; p < this.numPages; p++)   "&vbLF _
      & "  {   "&vbLF _
      & "    var aRect = this.getPageBox(""Crop"",p);  "&vbLF _
      & "    var TotWidth = aRect[2] - aRect[0];  "&vbLF _
      & "    var fd = this.addField(""xftDate"", ""text"", p, [30,15, TotWidth-30-30,30]);   "&vbLF _
      & "    fd.value =  util.printd(AcDateFormat, AcDate) + ""   ("" + FileNM +"")"";   "&vbLF _
      & "    fd.textSize=6;   "&vbLF _
      & "    fd.readonly = true;  "&vbLF _
      & "    fd.alignment=""left"";  "&vbLF _
    '    // kernel: batch processing of js-code
    for each xFile in oArgs
        if test = 1 then : OK = msgbox("Change file: " & xFile,1) : if OK = 2 then WScript.quit : end if
        If not fso.FileExists(xFile) Then : msgbox("File doesn't exist") : wscript.quit : end if
        If AVDoc.Open(xFile,"") Then
            set PDDoc = AVDoc.GetPDDoc
            AForm.Fields.ExecuteThisJavaScript Ex
            outFile = fileSaveDir &"\" &mid(xFile,InstrRev(xFile,"\")+1)
            if test = 1 then : OK = msgbox("Script executed"&vbCr&"SaveAs: "&outfile,1) : if OK = 2 then WScript.quit : end if
            If fso.FileExists(outFile) Then fso.DeleteFile(outfile)
            PDDoc.save 1, outFile
            App.CloseAllDocs
        else
            msgbox("Coudn't open file!") : wscript.quit
        end if
    next
    OK = msgbox("Batchjob finished!" &vbCr &"Close Acrobat?",1) : if OK = 1 then app.exit
    Set AVDoc = Nothing : Set PDDoc = Nothing
    Set APP = Nothing : Set AForm = Nothing

    thanks for all the replies, the documents are forms usage rights, the first javascript is running fine and dandy doing exactly what i want, all i need is something to run that javascript on multiple pdf at once.
    since this is for audit purposes i really could use this otherwise i would have to manually write over 400 document filename/numbers on eveyr piece of paper..
    =X

  • Convergence not displaying all of Mulitpart MIME messages

    Occasionally a message will come through, readable in IMAP, and even in Comms Express 6.3, but it's blank in Convergence 1u2.
    Invariably said message will always start with:
    "This is a multi-part message in MIME format."
    And in Convergence the rest of it is blank. Here's an example. The part that says "For those planning to go, Chotchky's at 5:30pm." is not visible in Convergence, but is visible over IMAP and in CE 6.3:
    Return-path: <[email protected]>
    Received: from mta4.school.edu ([10.1.106.74])
    by ms0.school.edu (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar
    14 2008; 32bit)) with ESMTP id <[email protected]> for
    [email protected]; Thu, 20 Aug 2009 16:37:13 -0400 (EDT)
    Original-recipient: rfc822;[email protected]
    Received: from lyris.school.edu ([130.68.1.204])
    by mta4.school.edu (Sun Java(tm) System Messaging Server 6.3-8.01 (built
    Dec 16 2008; 32bit)) with SMTP id <[email protected]> for
    [email protected] (ORCPT [email protected]); Thu,
    20 Aug 2009 16:37:13 -0400 (EDT)
    Message-id:
    <LISTMANAGER-439878-20171-2009.08.20-16.37.06--me#[email protected]>
    Date: Thu, 20 Aug 2009 16:33:11 -0400
    From: Veep Headguy <[email protected]>
    Reply-to: Veep Headguy <[email protected]>
    Organization: School
    User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
    MIME-version: 1.0
    To: Information Technology <[email protected]>
    Subject: [msu-it-all] End of summer gathering
    Content-type: multipart/mixed; boundary=------------040003060804070804070803
    List-Unsubscribe: <mailto:[email protected]>
    --------------040003060804070804070803
    Content-Type: text/plain; charset="us-ascii"
    Content-description: header
    --------- Information Technology mailing list --------
    This is a multi-part message in MIME format.
    --------------040003060804070804070803
    Content-Type: text/plain; charset=ISO-8859-1; format=flowed
    Content-Transfer-Encoding: 7bit
    For those planning to go, Chotchky's at 5:30pm.
    --------------040003060804070804070803
    Content-Type: text/x-vcard; charset=utf-8;
    name="vcard.vcf"
    Content-Transfer-Encoding: 7bit
    Content-Disposition: attachment;
    filename="vcard.vcf"
    begin:vcard
    ...snip...
    end:vcard
    --------------040003060804070804070803
    Content-Type: text/plain; charset="us-ascii"
    Content-description: footer
    Veep Headguy, CIO of School
    --------------040003060804070804070803--

    Shane,
    After a long delay I'm looking at this issue again and your initial argument for the bug doesn't seem to hold true. We've switched mailing list providers since, which has resolved the "space on blank line" issue and the incorrect placement of the "multi-part MIME" message (at least for messages sent in plain text). Convergence (1u3 now) takes the header MIME portion, duplicates it, and does not display the message content.
    As the message source appears:
    Content-type: multipart/mixed; boundary="----------=_1277239432-28582-15"
    This is a multi-part message in MIME format...
    ------------=_1277239432-28582-15
    Content-Type: text/plain; charset="UTF-8"; name="message-header.txt"
    Content-Disposition: inline; filename="message-header.txt"
    Content-Transfer-Encoding: 8bit
    MIME-Version: 1.0
    X-Mailer: MIME-tools 5.427 (Entity 5.427)
    ANYTHING YOU SAY CAN AND WILL BE USED AGAINST YOU IN A COURT OF LAWYERS
    ------------=_1277239432-28582-15
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 7bit
    Still delicious, though.
    Adam N. Copeland
    Office of Information Technology
    Systems and Security Group
    www.montclair.edu/~copelanda
    ------------=_1277239432-28582-15
    Content-Type: text/plain; charset="UTF-8"; name="message-footer.txt"
    Content-Disposition: inline; filename="message-footer.txt"
    Content-Transfer-Encoding: 8bit
    test-copelanda
    Your favorite chewing gum is coming back into style! Football.
    ------------=_1277239432-28582-15--How the message appears in Convergence:
    ANYTHING YOU SAY CAN AND WILL BE USED AGAINST YOU IN A COURT OF LAWYERS **************************************************************************************************************
    ANYTHING YOU SAY CAN AND WILL BE USED AGAINST YOU IN A COURT OF LAWYERS **************************************************************************************************************
    test-copelanda Your favorite chewing gum is coming back into style! Football.

  • Putting Date Last Modified on PDF

    Is there a way to put the date last modified on a PDF using Javascript? I am trying to organize a folder of PDF maps and the only way I can think of to do it is to print out each map with its file name and date last modified (so we can come back to the folder and delete the duplicates and the really old ones).
    The wonderful thread Print File Name with PDF Document has helped me figure out how to put the file name and current date into each pdf as a footer, but when I tried to edit the code to get the date last modified, I get an error.
    I will admit that I am a newbie when it comes to Javascript, so any suggestions would be extremely helpful.
    My code is as follows:
    // SetRemoveFooter
    app.addSubMenu({ cName: "Footer",cUser: "Set/Remove Footer", cParent: "File", nPos: 20 });
    app.addMenuItem({ cName: "Set Date Time (Filename)", cParent: "Footer", cExec: "SetFooter(1)"});
    app.addMenuItem({ cName: " -> Set Date .... centered", cParent: "Footer", cExec: "SetFooter(2)"});
    app.addMenuItem({ cName: " -> Set Date .... right", cParent: "Footer", cExec: "SetFooter(3)"});
    app.addMenuItem({ cName: "Set Page ", cParent: "Footer", cExec: "SetFooter(4)"});
    app.addMenuItem({ cName: "Set Both", cParent: "Footer", cExec: "SetFooter(5)"});
    app.addMenuItem({ cName: "-------------------------------", cParent: "Footer",cExec: "{}"});
    app.addMenuItem({ cName: "Remove Both", cParent: "Footer", cExec: "RemoveFooter(5)"});
    app.addMenuItem({ cName: "Remove Date Time (Filename)", cParent: "Footer", cExec: "RemoveFooter(1)"});
    app.addMenuItem({ cName: "Remove Page", cParent: "Footer", cExec: "RemoveFooter(4)"});
    //Set/remove Footer
    function SetFooter(ARG)
    var FileNM = this.documentFileName
    var AcDate = document.lastModified
    var AcDateFormat = "yyyy/mmm/dd HH:MM"
    var Box2Width = 50
    for (var p = 0; p < this.numPages; p++)
    var aRect = this.getPageBox("Crop",p);
    var TotWidth = aRect[2] - aRect[0]
    if (ARG<=3 || ARG==5)
    {var fd = this.addField("xftDate", "text", p, [30,15, TotWidth-30-30,30]);
    fd.value = util.printd(AcDateFormat, AcDate) + " (" + FileNM +")";
    fd.textSize=6; fd.readonly = true;
    if (ARG==1){ fd.alignment="left" };
    if (ARG==2){ fd.alignment="center" };
    if (ARG==3){ fd.alignment="right" };
    if (ARG==4 || ARG==5)
    {var bStart=(TotWidth/2)-(Box2Width/2)
    var bEnd=((TotWidth/2)+(Box2Width/2))
    var fp = this.addField(String("xftPage"+p+1), "text", p, [bStart,30,bEnd,15]);
    fp.value = "Page: " + String(p+1)+ "/" + this.numPages;
    fp.textSize=6; fp.readonly = true;
    fp.alignment="center";
    function RemoveFooter(ARG)
    if (ARG<=3 || ARG==5) {var x = this.removeField("xftDate");}
    if (ARG==2 || ARG==5) {for (var p = 0; p < this.numPages; p++)
    var x = this.removeField(String("xftPage"+p+1)); }
    Everything worked wonderfully until I added the line var AcDate = document.lastModified
    Is there a simple solution or is this a much more complicated problem?
    Thanks!

    You need to use:
    this.info.ModDate
    To get the date the opened PDF was last modified.

  • Acrobat batch how to perform?

    http://forums.adobe.com/thread/302996
    I am on this page to find the relevant code,
    app.addSubMenu({ cName: "Footer",cUser: "Set/Remove Footer", cParent: "File", nPos: 20 });
    app.addMenuItem({ cName: "Set Date Time (Filename)", cParent: "Footer", cExec: "SetFooter(1)"});
    app.addMenuItem({ cName: "Set Page ", cParent: "Footer", cExec: "SetFooter(2)"});
    app.addMenuItem({ cName: "Set Both", cParent: "Footer", cExec: "SetFooter(3)"});
    app.addMenuItem({ cName: "-------------------------------", cParent: "Footer",cExec: "{}"});
    app.addMenuItem({ cName: "Remove Date Time (Filename)", cParent: "Footer", cExec: "RemoveFooter(1)"});
    app.addMenuItem({ cName: "Remove Page", cParent: "Footer", cExec: "RemoveFooter(2)"});
    app.addMenuItem({ cName: "Remove Both", cParent: "Footer", cExec: "RemoveFooter(3)"});
    function SetFooter(ARG)
    var re = /.*\/|\.pdf$/ig;
    var FileNM = this.path.replace(re,"")+".pdf";
    var Path = this.path;
    var AcDate = new Date();
    for (var p = 0; p < this.numPages; p++)
    if (ARG==1 || ARG==3) {var fd = this.addField("xftDate", "text", p, [30,15, 290,30]);
    fd.textSize=6; fd.value = util.printd("yyyy/mmm/dd, HH:MM", AcDate) + " (" + FileNM +")"; }
    if (ARG==2 || ARG==3){var fp = this.addField(String("xftPage"+p+1), "text", p, [350,15,300,30]);
    fp.textSize=6; fp.value = "Page: " + String(p+1)+ "/" + this.numPages; }
    function RemoveFooter(ARG)
    if (ARG==1 || ARG==3) {var x = this.removeField("xftDate");}
    if (ARG==2 || ARG==3) {for (var p = 0; p < this.numPages; p++)
    var x = this.removeField(String("xftPage"+p+1)); }
    but do not know how to achieve a batch?

    Hello,Gilad D!
    Please send me the specific script okay?
    Thank you very much!

  • Trying to add filename and path in footer of Word doc and it only lets me "Convert to PDF"?

    I am running MS Office 03 and just installed Acrobat 9.0 Pro. When I try to insert the Filename and Path from the insert option of the footer properties, it only gives me the option to "Convert to PDF". I don't know why it's doing this, but it started after the install of Acrobat 9.0. What should I do?

      To get the path ... event.target.path;
    To get the file name .... event.target.documentFileName;

  • Remove filename header and footer

    Hello! When you open a HTML file in Acrobat it puts the path to the filename in the header and footer automatically. How can I remove this?
    I went to Header/Footer and tried to update or remove, but it says there is no option. How do I do this?
    In another issue, Is there any plugin that will let me "press enter" to move the body of text downwards in the PDF, similar to Microsoft Word? I imported a bunch of company listings from a HTML document and I am trying to space them out 3 to a page and I need to shift the body of text down to the next page break. Is this possible with Acrobat or an affordable program/plugin?
    Kind Regards,
    Kevin

    Have you tried using the Touch Up Text tool for both of your issues?  Touch Up Text will not work in an automated way, but you can use it to manually edit existing text on the page.  Not sure about any plugins that remove headers/footers, although there might be a way in Acrobat's help files that outline how to prevent it from automatically embedding on converted HTML pages from web browsers.

  • Is there a way to automatically insert the filename in the footer of a spreadsheet using iWork's numbers 3.2?

    Is there a way to automatically insert the filename of a spreadsheet into the footer when using iworks numbers 3.2?  iworks 09 had this feature and I can't find this feature in the new version of numbers.

    Hi rhyolite,
    In Numbers 3.x, The Print View and Layout View have gone (for now at least). Page Headers and Footers can only be reached under Menu > File > Print... to open Print Preview. Hover the cursor to reveal the Page Header and Footer fields.
    The only inserts that I can get to work in Print Preview are Page Number, Page Count and Date & Time. Filename is no longer in the Insert menu.
    Regards,
    Ian.

  • Adding filename and path to Adobe Designer form footer

    We are developing a form and Document Control required the form have a field on the form footer to show the live "Path & filename".
    I need what is shown in the properties under "File" to show up in the footer. I have been unable to locate the correct syntax to type in the footer.
    Can you tell me how this can be accomplished?

    Create a field on your masterpage. Get rid of the caption, appearance=none and set as Protected. Also set your width to expand to fit. In the layout:ready event of your field, add this JavaScript:
    this.rawValue=event.target.path
    That should do it.
    Kyle

Maybe you are looking for