Acrobat Javascript get Windows PDF creation time

Is there a way to get the Windows creation time of a PDF in Acrobat Javascript? When you copy a PDF the Windows creation time changes but the PDF creation time does not. I'm looking for a way to detect if someone copied the PDF.

I know you can get the PDF creation time through the info object but that isn't what I want. When you copy-paste a PDF in Windows the creation time of the info object doesn't change. It always stays the same so I can't detect a copy that way. I want the creation time that Windows provides. Is that possible?

Similar Messages

  • Get File Names & Creation Time of the files of a directory in App. Server

    Dear all,
                  My requirement is to fetch all the file names of a paritucular direcory in the application server. After going through SDN i got some FM's like
        1. EPS_GET_DIRECTORY_LISTING
        2. EPS_GET_FILE_ATTRIBUTES
        3. SUBST_GET_FILE_LIST
        Here EPS_GET_DIRECTORY_LISTING looks perfect for my requirement. But while I tried to test the FM from SE37 its giving exception READ_DIRECTORY_FAILED for the required Directory. But the same FM is returning file names for the root directory.
    Please look a above 2 scenario...
    ie. if I give Export parameter as
         DIR_NAME                         = '/'
         FILE_MASK                       = '*'
         The FM works fine.
    But . if I give Export parameter as
         DIR_NAME                         = '/XYZ'                      
         FILE_MASK                       = '*'
        The FM returns exception READ_DIRECTORY_FAILED .
    But the directory  /XYZ exists and there are files in it..Am I missing something with respect to the path am specifying.
    Regards,
    Antony

    Hi, see if this peace of code helps you.
    CONSTANTS DAYS1980 TYPE I VALUE 3652.
    DATA: DLIST LIKE EPSFILI OCCURS 0 WITH HEADER LINE, DPATH LIKE EPSF-EPSDIRNAM, MDATE LIKE SY-DATUM, MTIME LIKE SY-UZEIT, POINT_IN_TIME TYPE I.
    DATA: BEGIN OF FATTR OCCURS 0, FILE_NAME LIKE EPSF-EPSFILNAM, FILE_SIZE LIKE EPSF-EPSFILSIZ, FILE_OWNER LIKE EPSF-EPSFILOWN, FILE_MODE LIKE EPSF-EPSFILMOD, FILE_TYPE LIKE EPSF-EPSFILTYP, FILE_MTIME(12), END OF FATTR.
    PARAMETER P_PATH(50) TYPE C DEFAULT '/TMP' LOWER CASE.
    DPATH = P_PATH.
    CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
    EXPORTING
      DIR_NAME = DPATH
    TABLES
      DIR_LIST = DLIST
    EXCEPTIONS
      INVALID_EPS_SUBDIR = 1
      SAPGPARAM_FAILED = 2
      BUILD_DIRECTORY_FAILED = 3
      NO_AUTHORIZATION = 4
      READ_DIRECTORY_FAILED = 5
      TOO_MANY_READ_ERRORS = 6
      EMPTY_DIRECTORY_LIST = 7
      OTHERS = 8.
      IF SY-SUBRC EQ 0.
      LOOP AT DLIST.
    CALL FUNCTION 'EPS_GET_FILE_ATTRIBUTES'
    EXPORTING
      FILE_NAME = DLIST-NAME
      DIR_NAME = DPATH IMPORTING
      FILE_SIZE = FATTR-FILE_SIZE
      FILE_OWNER = FATTR-FILE_OWNER
      FILE_MODE = FATTR-FILE_MODE
      FILE_TYPE = FATTR-FILE_TYPE
      FILE_MTIME = FATTR-FILE_MTIME.
      FATTR-FILE_NAME = DLIST-NAME.
      APPEND FATTR.
        ENDLOOP.
      ENDIF.
      SORT FATTR BY FILE_NAME.
      LOOP AT FATTR.
      POINT_IN_TIME = FATTR-FILE_MTIME.
      CALL FUNCTION 'POINT_IN_TIME_CONVERT'
      EXPORTING
      POINT_IN_TIME = POINT_IN_TIME
      IMPORTING
      DATE = MDATE
      TIME = MTIME
      EXCEPTIONS OTHERS = 1.
      SUBTRACT DAYS1980 FROM MDATE.
      WRITE: / FATTR-FILE_NAME, FATTR-FILE_SIZE, MDATE, MTIME.
      ENDLOOP.

  • Get pdf creation by using pdf javascript

    Hello all,
    Can I ask how can I get the pdf creation/ last modify date by using pdf javascript?
    Many Thanks
    Sunny

    this.creationDate and this.modDate have both been superseded by this.info property. These commands have not been eliminated but they are candidates for a future dropping.
    I would use
    this.info.CreationDate
    and
    this.info.ModDate
    Unless the user is using Acrobat 3 or 4.
    A universal approach for all versions could be:
    CreationDate = "";
    ModDate = "";
    if(app.viewerVersion < 5) {
    // versions below version 5
    CreationDate = this.creationDate;
    ModDate = this.modDate;
    } else {
    // versions 5 and above;
    CreationDate = this.info.CreationDate;
    ModDate = this.info.ModDate;
    app.alert("Viewer version: " + app.viewerVersion +
    "\nCreation date: " + CreationDate +
    "\nModification date: " + ModDate, 3, 0);

  • Acrobat Javascript and older versions of Reader

    Hi,
    I have created a basic Acrobat Javascript for my PDFs which reside at the document level.
    What i want to know is, how backwards compatible is Acrobat Javascript? Will it work in older versions of Adobe Reader?
    I have not managed to find much on this so any info would be appreciated.  I just need to make sure the script runs to all my users regardless of what version of reader they are using.
    Is this possible?
    Thanks.

    In addition to George's statement, you might also check the JavaScript version a specific Acrobat version supports; there have been a few useful changes in Core JavaScript 1.7 and 1.8 (in the Array object), which may prevent your script running properly in Acrobat 7 (and older).
    On the other hand, with the exception of "security" annoyances, old code (developed in Acrobat 4 or so) usually still works in Acrobat 10. This means, that you can program for a specific Acrobat version, and it should be fine with several newer versions as well. If not sure, check the documentation (mentioned by George) and try it out.
    HTH
    Max Wyss.

  • While installing Adobe Acrobat 8 on Windows 7 Professional why do I get the message "Adobe pdf.dll on windows Vista CD-ROM is needed.

    While installing Adobe Acrobat 8 on Windows 7 Professional, why do I get the messaage "Adobe pdf.dll on Windows Vista CD-ROM is needed"?

    Because your software is far too old for Windows 7.

  • I have adobe acrobat pro for windows and it is freezing up when I try to convert a word file to pdf... I have tried to get this done six ways from Sunday but it is just not working... help!  Chris.

    I have adobe acrobat pro for windows and it is freezing up when I try to convert a word file to pdf... I have tried to get this done six ways from Sunday but it is just not working... help!  Chris.

    It would be helpful to know what version of Acrobat, WORD, and operating system.
    Without that info, I would suggest at this point to open your WORD file and then go to the print menu and print to file using the Adobe PDF printer. Open the created file in Distiller and see if you get a PDF. If so, check to see if AcroTray is running in the background.
    You say you tried many ways. It would help to know what you tried and what worked or did not work, and at what point the failure occurs.

  • We use a plugin Adobe Acrobat NPAPI Plug-in Version 10.1.2 on a Mac to get the pdf to open in a browser window. Is there a later version or other method ?

    We use a plugin Adobe Acrobat NPAPI Plug-in Version 10.1.2 on a Mac to get the pdf to open in Acrobat and the pdf display within the browser window, as within our Online artwork Approval system we use the Acrobat Annotations server to annotate pdfs and publish to the server
    But we can no longer get this plugin to work! Is there a later version ? or is there another way of forcing the pdf to open in a Acrobat Reader application (not the Mac viewer) within the browser and not open another window to display the pdf in Acrobat?

    The latest version is 11.0.6. Whether that's available to you depends on the version of Mac OS you're running.
    * http://get.adobe.com/reader/enterprise/
    See the following articles.
    * [[PDF files are blank or cause an error message on Mac]]
    * [[Use the Adobe Reader plugin to view or download PDF files]]

  • I have an Acrobat 8 which is all I need.  Installed on my new computer which is using Windows 8.  Each time I open Acrobat I get a window that say unable to registrator.  It gives me three options try again, redo, never register.

    I have an Acrobat 8 which is all I need.  Installed on my new computer which is using Windows 8.  Each time I open Acrobat I get a window that say unable to registrator.  It gives me three options try again, redo, never register.  No matter which option I choose I cannot stop the window from opening each time I open the computer.
    Any suggestions?

    Probably far too old to register. Sounds like a bug, stopping the "never" selection from working. You may be stuck with it.

  • Adobe PDF creation cannot continue because Acrobat not activated

    Adobe CS3, Acrobat Professional 8.1.0, Windows XP Pro: CS3 has been working faultlessly for several years. Suddenly, when I try to print using Adobe PDF as printer I get message "Adobe PDF creation cannot continue because Acrobat not activated". To my knowledge all of CS 3 should be activated. InDesign, Photoshop, Bridge, Illustrator, etc work fine. I can even open Acrobat 8 and call up documents but I cannot print to it. When I click on "Activation" in Help menu, both "Activate" and "Deactivate" are grayed out. Any suggestions?

    Perhaps you should use this tool:
    <http://www.adobe.com/support/contact/licensing.html>
    The tool repairs the license but before using this tool, have you tried re-booting the system just in case this is a temporary problem?  Also, it is a good idea to create a temporary profile and try using the PDF printer to see if it is working.
    If it is working in your temporary profile, then this suggests that your preference file might need to be re-created but this is for next time after you have tried using the pdf in your test profile.
    G/L

  • Combine PDF feature missing from right click option Acrobat Pro 9/Windows 7

    I combine PDF's all day long and need this feature. I had it on my old computer and since moving over to the new computer I do not have the option to combine PDF's when right clicking on PDF documents. I have searched the forum and found other fixes, however none have worked, I have uninstalled and re-installed three times as well and no luck. Does anyone have any other ideas for fixes for this. I need this feature.....
    Message was edited by: chesty21

    Found this it worked for me :
    http://acrobatusers.com/forum/pdf-creation/right-click-option-combine-supported-files-miss ing a known issue caused by the context menu handler not being registered (tends to result from patches and installs when Windows UAC is active).
    It's
    From the Start menu, choose 'All Programs' > 'Accessories, and *right-click* on 'Command Prompt'Select 'Run as Administrator' and approve the UAC window (if one is displayed)
    If you have 64-bit Windows, in the command window type the following and press Enter, including the quotes:
    regsvr32 "C:\Program Files (x86)\Adobe\Acrobat 10.0\Acrobat Elements\ContextMenu64.dll"
    On 32-bit Windows, type this instead:
    regsvr32 "C:\Program Files\Adobe\Acrobat 10.0\Acrobat Elements\ContextMenu.dll"
    You should see a message saying it was successful. Close the command prompt window, and your context menus should be back up and running. .

  • Acrobat stops functioning halfway through PDF creation

    I have to convert a very large WORD document (a book, 680 pages including illustrations, tables, index etc.) to PDF. Let me begin by explaining that I've already done this in the past, using Acrobat Professional 5 and Office 2000 Professional; it took ages to create the PDF file, but I was able to do it. At that stage I actually had Acrobat 6, but since it blocked halfway through PDF creation, I went back to Acrobat 5 and managed to create my PDF file.
    I've recently had to revise the document in question, but I now have Office 2007, Acrobat Professional 8.1.2, and a new laptop (Acer Aspire 5105, AMD Turion 64x2, 2.0 GHz, 160GB HDD). I tried converting it to pDF yesterday, but once again found that the program blocked halfway through (while creating Tags; it gets up to 60%, and then just stops functioning). I thought this might have something to do with the sceensaver starting up, or else the automatic saving of the WORD document, but I don't think this is the case.
    Does anyone have any ideas as to what the problem might be, and how o solve it?
    Mark

    It should convert exactly as long as you have done the editing with the Adobe PDF printer selected. This is a WORD issue. The ability to do the conversion was my concern and tags are likely the issue for such a large document, particularly if you have a lot of graphics. Keep in mind that to create the PDF, a PS file is first created -- that is a format that is not very small in terms of storage and could be huge. Your TEMP folder is typically limited by windows and may need to be emptied to hold this file.
    Optimizing the graphics up front is also good. Using Mike's suggestion to find the problem graphic would be useful, but is hard to do with PDF Maker (I don't think you can select the pages with PDF Maker). Printing to the Adobe PDF printer will check the layout and also the ability to do the conversion. If the latter works, it is then a matter of determining what you need in PDF Maker.
    If you do not need the markup (or wish to add later), then you can save a lot of space by simply printing to the Adobe PDF printer. With PDF Maker, you likely need to go back and review the defaults.

  • How do I get the PDF Convert feature of Adobe Acrobat Pro Extended 9.4.4, which makes a PDF of a web page interactive, to work in Firefox 4.0.1?

    I just installed (on my Windows 7 Ultimate (64 bit) operating system/Intel i5 CPU M560 2.67 GHz) and am now using as my default browser Firefox 4.0.1 because Internet Explorer 9 was giving me so much trouble--lack of display of web content, lack of PDF reproduction when web content displayed, screwball formatting display, etc., all of which has been remedied by the mere installation of Firefox 4.0.1.
    How do I get the PDF Convert feature of Adobe Acrobat Pro Extended 9.4.4, which converts a web page to an interactive PDF, to set up and work on Firefox 4.0.1?

    You can not do that using Adobe Acrobat 9. Adobe never made a create PDF add-on for Firefox for use with Adobe Acrobat 9. They created a Firefox add-on for use with Acrobat X, but currently that one does not work with Firefox 4 though Adobe are working on an update.

  • I am trying to install update 11.0.06 for my Adobe Acrobat XI Pro, but without success multiple times.Get error 1603 each time,

    I am trying to install update 11.0.06 for my Adobe Acrobat XI Pro, but without success multiple times.Get error 1603 each time. I have tried disabling my antivirus software without success. I have looked for solutions to error 1603, and have tried what it suggests (empty temp files in Windows, etc.), also without success.There is nothing that mentions Window 8 or 8.1 operating system, though. Is this the issue? Please help.

    Hi Dawn,
    We might want to have a look at the install logs to determine the cause.
    Please try the following basic steps :
    > Enable the hidden Admin Account on Windows 7 ( Ref :  http://www.howtogeek.com/howto/windows-vista/enable-the-hidden-administrator-account-on-wi ndows-vista/ )
    > Disable all Non-Microsoft Startup Services. (Ref : http://helpx.adobe.com/x-productkb/global/disable-startup-items-services-windows.html )
    > Disable all the Antivirus softwares like CA, Norton,Mc Afee etc. temporarily from the computer.
    Reboot and try installing in the new enabled Admin user account and check.
    Regards,
    Rave

  • Printing a PDF via Acrobat Javascript

    Hi -
    I have a need to print a PDF programmatically, via Javascript.  The PDF is embedded in a Web page.  I use postMessage to communicate with the PDF.
    I've created a simple HTML page with an embedded PDF, and a Javascript link to call my "Print" function. Here's a code snippet:
    <body>
             <a href="javascript:doPrint();">Print</a>
             <object id="PDFObj" data="testPDF.pdf" type="application/pdf" width="400" height="400" />     
    </body>
    In the HTML document's HEAD, I've added the following Javascript which posts the message to the PDF:
    <script language="JavaScript">
            function doPrint() {
                pdfObject = document.getElementById("PDFObj");
                alert("Hello from Javascript...");
                pdfObject.postMessage(["Print", "Print"]);
    </script>
    Finally, I've added an Acrobat Javascript function in the PDF document to listen for the postMessage event:
    function myOnMessage(aMessage)
        app.alert("Hello from the PDF");
           // print routines here
    var msgHandlerObject = new Object();
    msgHandlerObject.onMessage = myOnMessage;
    msgHandlerObject.onError = myOnError;
    msgHandlerObject.onDisclose = myOnDisclose;
    function myOnDisclose(cURL,cDocumentURL)
    return true;
    function myOnError(error, aMessage)
    app.alert(error);
    this.hostContainer.messageHandler = msgHandlerObject;
    Here's my problem: when I test this code and click the HREF Javascript link, I see "Hello from Javascript..." and "Hello from the PDF," so I know the postMessage event is working.  However, I've tried every print command I know in the myOnMessage function, and nothing seems to work:
    app.execMenuItem("Print"); // doesn't seem to work
    this.print(); // doesn't seem to work, even when I pass in all the params, etc
    I've also tried getting print params and passing those in, nothing seems to work.  Am I missing something?  Environement is Acrobat 9 Pro, browser's tested include Chrome 2.0, IE6.  I've attached two files, the HTML bit and the PDF I'm trying to print.  Any help is greatly appreciated!

    You have to be careful when using the ActiveX control to communicate with system functions like printing.  Because it can be embedded in anything that supports ActiveX, some functionality is limited from being called from JavaScript as it may interfere with the host application.
    Check out the IAC API Reference (also included with the SDK) and the methods under AxAcroPDFLib.AxAcroPDF.  There are some print functions in there (like PrintAll) that you can call on the ActiveX control directly, as in from your doPrint() method in your HTML page without using the hostContainer.  You would basically just call:
    pdfObject = document.getElementById("PDFObj");
    pdfObject.PrintAll();
    These methods were designed specifically to work with the ActiveX control when embedded in a host application, and can be used to print a PDF embedded in a web page.

  • I keep getting the message: "what should firefox do with this file" in Windows XP every time I want to download a file, e.g., adobe, excel, etc. How can this annoying message be deleted? The check box to "open file automatically" does not work!

    I keep getting the message: "what should Firefox do with this file" in Windows XP every time I want to download a file, e.g., adobe, excel, etc. How can this annoying message be deleted? The check box to "open file automatically" does not work!

    cor-el,
    Thanks for your prompt reply. However, the sources you gave do not seem to apply exactly to my situation. I have attached some screenshots that show what the dialogue box looks like for a pdf download, and what my settings in the Apps panel of Options are. You will note in the first screenshot that I have checked the box to handle this file type automatically; however, the next time I try to download a file of that type, the same dialogue box appears looking exactly like the one shown, so checking the "automatic" option appears to do nothing. The files to be downloaded from my Gmail messages are not generic or altered file types - they are shown as pdf, doc, docx, etc. So while your intent was good, your post did not help. Thanks anyway.

Maybe you are looking for