On Feb 7, 10:12 am, "moussa854" <musa...@yahoo.comwrote:
Hi,
I have a pdf form that has an invoice number I would like to make the
number in the text field add (1) each time the document open and save
it, so that the next time the document is opened it will display a
consecutive number. Example: 9078, 9079, 9080, 9081...etc.
I appreciate your help.
Adobe JavaScript is an implementation of ECMAScript so theoretically
it is in relevance to this newsgroup. At the same time the involved
DOM and host objects models is rather different from the one you have
in UA. This way you may get a quicker help at Adobe forums. For Web
solutions I would suggest cookies or - for modern UAs - saveSnapshot
behavior on IE and its functional equivalents on Gecko browsers. I do
not dare to suggest anything for PDF Reader though.
You may ask at <http://www.adobeforums.com/cgi-bin/webx/.ee6b2e6/>
See also <http://www.adobe.com/devnet/reader/>
P.S. Beware that Adobe also owns ActionScript they got with purchasing
Macromedia technologies. It is yet another ECMAScript implementation
but very different from PDF JavaScript, it is closer in many aspects
to JScript.NET
Thus when asking for scripting help on Adobe forums always make clear
what are you programming with: Adobe Reader or Adobe (formely
Macromedia) Flash - otherwise it is easy to get help for all another
language.