Can I catch "Document Properties" editing events?

Ask a Question related to Adobe Acrobat SDK, Design and Development.

  1. #1

    Default Can I catch "Document Properties" editing events?

    My PDF files are all programmatically generated and I add some custom attributes at creation time. The end users, however, can always use the "Control-D | Custom" command to modify those attributes and/or add new ones. This is perfectly legitimate and allowed EXCEPT that they may input dates, and that's when there can be trouble.

    My system always displays PDF dates in the typical standard US format:

    mm/dd/yyyy

    However, following Adobe conventions the dates are internally stored as follows:

    CreationDate: D:20050412204711-05'00'

    So... What I would like to do is catch the event in which the user types a date, change it to the D:nnn-'nn' format before it gets written to disk.

    Can that sort of event be caught by a plugin??

    I guess I will need to place some sort of hook in the "Add" and "Change" buttons?

    TIA,

    -Ramon
    RamonHerrera@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. #40014 [NEW]: "try, catch" -- Let's Empower It, Please!!!
      From: marcus3v at hotmail dot com Operating system: PHP version: 6CVS-2007-01-03 (CVS) PHP Bug Type: Feature/Change Request...
    2. Pls tell me the exact difference between "Audit Account Logon Events" and "Audit Logon Events"
      Gurus, Regarding auditing of domain logins by my network users, I am unclear of the advantages of auditing for "Audit Account Logon Events"...
    3. Difference between Audit Account Logon Events" and "Audit Logon Events"???
      Gurus, Regarding auditing of domain logins by my network users, I am unclear of the advantages of auditing for "Audit Account Logon Events"...
    4. "Edit" not available in Document Properties Window
      Just installed Freehand MX, trying to create a custom document size and the first step according to the help docs is to click on "edit" and define...
    5. Not able to catch "Access Denied" exception
      Hi, We have developed ASP.NET web service for Windows sharePoint services and web service client. This web service calls SharePoint object...
  3. #2

    Default Re: Can I catch "Document Properties" editing events?

    I'm confused...

    What UI would the user be using in Adobe Acrobat that would enable them to enter their own metadata dates? Are you talking about the Advanced or Custom panels?
    Leonard_Rosenthol@adobeforums.com Guest

  4. #3

    Default Re: Can I catch "Document Properties" editing events?

    [Ramon wrote:]

    use the "Control-D | Custom" command to modify those attributes




    [Leonard asked:]

    Are you talking about the Advanced or Custom panels?




    I am talking about the "Custom" panel.

    AFAIK, anything that the user types in that panel, ends up being inserted in the PDF file literally, as a string.

    I would hate having to tell my users:

    "Oh guys, BTW, whenever you type a date, you have to type it like this:

    D:20050424100720-04'30'

    In my apps, I have my own interfaces to enter metadata dates into my PDF files:

    (1) Programmatically, at file creation, the obscure format is irrelevant.

    (2) During GUI interaction, I use a date picker.

    In fact, what I really would prefer to do is adding a date picker to the Acrobat "Custom Panel".

    Thanks,

    -Ramon
    RamonHerrera@adobeforums.com Guest

  5. #4

    Default Re: Can I catch "Document Properties" editing events?

    So this is the reason that over 10 years ago(!) we moved from the old style "Document Information" metadata to XML-based metadata (called XMP). If you use XMP, then there is an associated schema for the data and it KNOWS when something is a date and can help you (and validate your information).

    PLEASE use XMP...
    Leonard_Rosenthol@adobeforums.com Guest

  6. #5

    Default Re: Can I catch "Document Properties" editing events?



    PLEASE use XMP...




    Leonard:

    My universe of PDF forms are created programmatically, by a server program that I wrote myself. Therefore, I have the ability to decide which type(s) of metadata to insert.

    I am currently following the implicit recommendation given to user by Acrobat 8. Such version inserts metadata items both in the "Info" dictionary and in the XMP tree.

    As you probably know Acrobat 9 only inserts metadata in XMP format.

    I guess at some point my file-creating software will follow Acrobat 9's lead.

    -Ramon
    RamonHerrera@adobeforums.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139