title: Use Javascript to add digital signature box to any pdf
body: <p>So I've spent a fair amount of time searching both on stack overflow and elsewhere and usually people are trying to add a signature block and sign a pdf.  </p>
  
  <p>I am looking to add a signature box in the same location on the document, to any PDF.  My problem, we produce a documents for approval for a client to sign, it is extremely time consuming to go into adobe dc, prepare form, add the signature box and save it.  I've written all this in less time then it takes to do all that.  I want to create a desktop java script that adds a signature box to any open pdf.  </p>
  
  <p>I'm a total novice to java but use VBA in excel regularly.  </p>
  
  <p>I have tried this one suggestion from (<a href="https://forums.adobe.com/thread/2342110" rel="nofollow noreferrer">https://forums.adobe.com/thread/2342110</a>)</p>
  
  <pre><code>    var name = "sigField";
      var type = "signature";
      var page = 0;
      var mySigRect = ;
      var sf = this.addField(name, type, page, mySigRect);
  </code></pre>
  
  <p>it didn't work.  just an error on the last semi colon.</p>
  
  <p>Any help would be wonderful! </p>
  
  <p>Cheers.</p>