Put the Date of last changed on PDF

Is there a way to put the date of last change on a PDF using Javascript? I'm putting together a folder of maps in PDF format, and the only way I can think to do is to print each card with its file name and last modified date (so we can go back to the folder and delete the duplicates and the very old).

Wonderful wire print with Document PDF file name has helped find me a way to put the file name and the current date in each pdf as a footer, but when I tried to modify the code to get the last update, I get an error.

I have to admit that I am a newbie when it comes to Javascript, so any suggestions would be extremely useful.

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 perfectly until I added the line var AcDate = document.lastModified

Is there a simple solution, or is it a much more complicated problem?

Thank you!

It failed because there is no such thing as document.lastModified

Try this instead: this.info.ModDate

Tags: Acrobat

Similar Questions

  • How update the name and the date of last update its?

    Hello

    In a data entry form, I have Undated_On and Updated_By fields.
    I put & APP_USER. and to_char(sysdate,'DD-MON-RR') than their default values.
    When the saved data are changed, I want the name and date of update the last updated person.
    But even if I update with different user login ID, only the default values are displayed.
    How can I change the name and the date of last update its?

    Thank you
    Guy

    -----
    H5. FYI, I am very new to SQL, PL/SQL, and APEX. Would appreciate much more explanation and full path (for example. Shared components > change the security attributes > VPD)

    Hi guy,

    I have a form based on the employees table. If someone makes any changes on the form, it will update the user_id and last_updated columns in the table. I use the trigger on the table to update these columns:

    CREATE OR REPLACE TRIGGER biud_employees
    FRONT
    INSERT OR UPDATE
    ON employees
    REFERRING AGAIN AS NINE OLD AND OLD
    FOR EACH LINE
    Start
    : new.user_id: = nvl (v ('APP_USER'), user);
    : new.last_updated: = sysdate;
    end;
    /

    It will be useful.
    Thank you
    Zahid

  • How do I get the date of last Saturday

    Hello

    How can I calculate the date of last Saturday

    IND > select sysdate double;

    SYSDATE
    ---------------------
    08 - jun - 11:04:43:36:pm

    1 selected line.

    IND > NEXT_DAY(sysdate,'SAT') SELECT-double 7;

    NEXT_DAY (SYSDATE,'SAT)
    ---------------------
    04 - jun - 11:04:43:44:pm

    1 selected line.

  • El Capitan. Date of last change sorting

    In collaboration with El Capitan. Actually, the "Last modified" column displays the date that the file was last opened.  If I open a file, but make no changes, not near "last modified" always show an earlier date? Me always changes to today's date, which seems to make the feature useless.

    This is a specific file type.

    None of my friends I found has this behavior.

  • Put the data of the set point in a waveform graph

    Hello

    In a graph of measure, which is the result of a waveform, I would add data of the set point as well. How can I add this data to set for the chart value?

    In a control loop system, the output is controlled by a labview program. I would like to see the point of this system as well as in the graph, these thresholds are changed at random times, so I don't know how to create a waveform of these data. Should I create a waveform of the setpoint, or y at - it another option to show the set value in the chart?

    See you soon,.

    Rolf

    That can make it much more difficult.

    At one point an array of 1000 points need to be assembled (obviously). How do depends greatly on your structure. Synchronize the time of the two signals can be very difficult. It would be easy if the set value only changed once a cycle of 1000 point.

    You may want to read the SP as an analog input, so you get 2 samples of the material here. In this way the two will always be synchronized. But I'm done alleady assumption, like this, the signal is an analog input (and the target value of one analogue output). What equipment do you use?

    I think always need you a loop to get data and a loop to set the SP. The two loops will be more parallel execution GLSL and synchroniseent. The trick is to synchronize, or for the deterministic timestamps in two loops. If you can make that happen, you 80% there. You could do loops timed loops (using the same clock). Then you get the timestamps in two loops. The MS loop has the queue changes, pushing the value and time. Then the loop of data can use values and hours to create examples of sp 1000.

  • You can put the date into a file path?

    My program written spreadsheets. I want there to be a new file daily, entitled the days date, then the data added to the end of the day. Is any way to get the date issued by a ' get Date / Time String "and put in the path to the function"write the spreadsheet"?

    As is - anyone can confirm that a file path in a file writing worksheet is to open the file and one to come is saving and closing?

    See you soon

    Sam

    This better?

    As red Rooster have already said, use vi "string of Format Date/time" to not prevent elements of DateTime stamps that you need and also to choose appropriate delimiters.

    Keep in mind that ' / '&': ' are not allowed in Windows file names!

    Also to keep track of all your files in a folder, it is best to name your files 'Year-month-day"instead of the standard ' Monyh/day/year' (for Europeans at least ). This way you can easily find any file in a folder larger.

    You have really two different folders? One of the files before noon and the other for files after noon?

    If so keep this code.

    If not, modify this code!

  • the date is most changed since installing the latest version of firefox

    Since the download of the latest version of Firefox the date on the computer is no longer the Exchange.
    How does a deletions/remove bookmark sites list?

    Hello

    What is the date now?
    Step 1: Make sure the checkbox automatically synchronize with a time server Internet is enabled

    Step 2: You may need to change the CMOS battery. Contact the manufacturer of the aid on that system.

  • See date + hour in the date cells without changing the NLS settings

    We have a lot of columns date containing the date + time values, I often need to see while browsing the data in the table.

    Settings for the date format default NLS are exact to 'Russia', our database uses the default, which is then used by SQLDeveloper. For example, to display the values of time, I should write or select to_char manually with appropriate or the NLS under "Database" settings in preferences. Of course, it seems preferable to modify the NLS parameter.

    However, the date format change NLS has certain side effects. For example, it affects various tasks involving mainly exporters, which are launched from SQLDeveloper, because the to_char default to values date format also changes. Of course we could blame the lazy developers does not explicitly specify the formats, but it does not change the fact that the results of the task execution are 'bad', and which can be quite difficult to notice until the following tasks fail.  Also, if I'm not mistaken, NLS_DATE_FORMAT also affects to_date default format, making import text and date columns questioning pretty boring. It's better safe than sorry, so I need to keep the NLS parameters

    So, is it possible to set date format only for the display of the values in the data grid, without affecting the NLS settings somehow? I'm fine with just about anything, including writing an extension myself if necessary, I just need to work. If it is not possible, SQL Developer Team please add this parameter, or at least display a tooltip on mouseover, displaying the value of the cell "full"?

    NLS is the only way to affect the display of dates in the grids. To_char formatting is up to you good - he will use that you define in the function call.

  • where Workstation puts the data?

    Hello

    I'm a bit confused. I understand, when disc is made to grow, then after each snapshot of data are put in the new file. But when I did drive "do now" (allocate all the space now), then when the data are asked?

    I do drive, allocate all the space and above all write to disk first snapshot. In this case, none of the data never published in this flat disc?  Why this vacuum disc at all then?

    When you plan to use snapshots do not record préallouées - it's a waste of disk space

    ___________________________________

    VMX-settings- VMware-liveCD - VM-infirmary

  • The server reboots required when the data source is changed?

    Whenever I create a new Data Source, or change the Source of existing data from the server asks for the restart after clicking on the button "activate changes. Is it necessary every time when the DS is changed?

    Can someone clear my doubt as soon as POSSIBLE.

    Thanks in advance.

    -Prasad

    Hello

    I think it must refer to a particular data source restart not restarting the server. What that does show when you click on reboots and view changes in the upper left corner of the Weblogic console.

    Kind regards
    Neeraj Sehgal

  • Use the date filter to change in fsisys.ini - Documaker Server 11.1

    Hello

    I'm trying to create a filter for my lot at fsisys.ini (Documaker Server 11.1). I would use a date, however, it does not work. Is this possible?

    Here's what I entered:

    Rebatch = BatchName (sdbib) If ((TranType = "BILL" et COMPANY_NAME = "COMPAGNIE D'ASSURANCE XYZ") or (TranType = 'Bill' and COMPANY_NAME = 'ABC INSURANCE COMPANY' and POLICY_EFF_DATE > = November 1, 2013 '))

    The result will in the default batch instead of the one I want (sdbib). Of course when I remove the date it goes into the good batch.

    Solved my problem! Lines added to BatchingBYRecip in fsisys.ini using two different DALs include the DiffDate. If the FDA is not met, the DefaultBatch is used.

  • Does not display the data of Apple users in PDF format

    Hello

    We have created a form using Acrobat 9.  The form can be completed and saved, so people can send to us.

    Whenever I receive a form someone who uses an Apple, the characters they typed, do not appear in the boxes unless you click on the area where the data should be.  It does not print the data either.

    For example, let's say I have the part of the form where people with type a paragraph.  When they e-mail form more, it is empty... unless I click on the box that the data is, they, it turns out.  This only happens with Apple users.

    You have any ideas on why this is and how to fix?

    Thank you!

    Dave

    In Acrobat 9, you would select: forms > manage form data > export data

    export, and:

    Forms > manage form data > import data

  • Is there a way to know the date of last access to a file?

    The file is protected and could not be changed, it is of no help.  I think he was sent by e-mail or printed.

    Hi Joelleph,

    If you need to know the time of the file when the last access, you can check its properties.

    a. open the file location

    b. right-click on the file.

    c. Select Properties. Check the access the time.

    If this isn't what you're looking for then respond with more information so we can help you best.

  • Wait for the date / time of changes

    Is there a way to be notified of a change in the system clock without having to query now?  As a documented global event that we can count on platforms and OS versions?

    Having an application that triggers only once a day, exactly at midnight.  Tried Timer.schedule (_, Date()), but apparently it converts the absolute date/time to an interval, because when the weather changes, he fires at the wrong time.

    If the availability of the phone could be verified, then tilt between System.currentTimeMilllis () and the uptime could detect in a poll timer.  But it is a background application, you can't find time to availability of UI events, and I don't like not returning when it can be avoided.

    Thank you

    Maybe

    http://www.BlackBerry.com/developers/docs/6.0.0api/NET/rim/device/API/system/RealtimeClockListener.h...

  • I put the date of graduation hurt

    I signed up for the cloud to adobe for College and I forgot what year I graduated, so I put 2017 which is false. Is - it there anyway for me to change that because I'll be a student after 2017?

    Student and Teacher Edition Information

    Hello

    Please refer rescued, restart, or extend your Adobe Creative Cloud membership

    You can also see Adobe Creative Cloud training FAQ

    Hope that helps!

    Kind regards

    Sheena

Maybe you are looking for

  • Tecra W50 - open case to replace DVD with SSD

    Hellosomeone there to remove the outer covering of experience? I want to remove the DVD and replace it with another SSD disk (the standard SSD is very low at 250 GB). I have a new 500 GB Toshiba SSD drive and a shopping cart. David

  • Webkinz window is tiny regular size w/mozilla w/internet explore

    For 2 years, I played on Webkinz.com with my granddaughter without any problems with Mozilla. About 3 weeks ago or so when we had to play the login window is tiny and when you sign in the box set isn't everything on the screen. I tried everything I c

  • fact my aspire 5517 notebook series have built in microphone?

    I tried to get my microphone to work for use in my Skype calls. I do not know if the series aspire 5517 laptop has one built and if yes, how can I get it to work?

  • How to put on professional level of Windows 7 edition?

    laptop HP pavilion dv2, windows 7 Home premium installed. * original title - I have windows 7 Home premium on my pc. I bought the cd of professional installation of windows 7. should I just put the cd in my computer, or do I have to use ms transfer p

  • What is NvtSp50.sys?

    I ran the autoruns program to see if there are all the programs that I could do without running at the beginning upward. When I watched the passage of drivers of it I got an error message telling me that he was missing the drivers for NvtSp50.sys. Fr