title: Is it possible to generate a dynamic stamp serial number on PDFs that increases after every download?
body: <p>We have pdf applications that people download from our website and mail in physical copies.  We would like to add dynamic, self-generating serial numbers to these files so that we can better understand things like how long people take to mail them back to us after downloading, and % of downloads that result in conversions.  </p>
  
  <p>I have tried the built in Dynamic Stamp tool in Adobe Acrobat, I have found Javascript (see below) that increases incrementally each time the pdf is opened, but it has to be saved locally in order for the number to increase, so that doesn't work.  Is there a way to have a physical number that ticks up with every download? Here is the javascript code I have so far:</p>
  
  <pre><code>var f = this.getField("Number");
  f.value = Number(f.value)+1;
  f.defaultValue = f.value;
  </code></pre>
  
  <p>Ideally, this would be simple code that adds 1 number to a serial number stamped on the cover of my PDF every time it is downloaded(or a text box with a number in it that increases by 1).</p>