mercredi 4 février 2015

Javascript Coding for use in Adobe Acrobat Professional


I have been looking into creating custom dynamic stamps for use in Adobe Professional.


I have got as far as creating the custom text fields and positioning them over the image which I want to use as the stamp itself within Acrobat - this is the easy part which requires no programming skills.


My problems arise when I come to implementing the text field - It requires some JavaScript in order to 'tell' the text field what to do and how to fill it in. I simply have no experience and wouldn't know where to start learning despite my thinking that what I am asking is simple in terms of the coding.


Here are some images of the stamps and what I would like to do with them.


Stamp 1:-


enter image description here


For this first stamp, I would like to have the 2 text fields to be filled in in sequence, the 'name' box followed by the 'date' box (I should note that I would like the date box to be a manual entry rather than an auto-insertion of the current date by the script, but forced into the format DD/MM/YYYY).


If possible I would also like there to be prompt boxes for each text field saying something along the lines of 'Enter Assessors Name' and 'Enter Review Date', as shown - this is not essential however.


Stamp 2:


Possibly a little more simple...


enter image description here


In the above, I don't require a prompt window. The text fields need to be filled in in the sequence as indicated in the image but it is vital that there is the ability to skip certain boxes (either by just entering 'space' as the text value, or something less crude if possible), as well as being able to terminate the text entry process before the end of the sequence, as sometimes not all the boxes need to be filled in.


I have enclosed this link - http://ift.tt/1DdoObT - to give an idea of the generic process of creating a dynamic stamp for those who aren't familiar with it; you will see the 'Validate' and 'Calculate' value tabs, where I believe the JavaScript is to be written.


Thank you in advance for this. I will be able to reply to any questions promptly should any crop up.





Aucun commentaire:

Enregistrer un commentaire