title: Uncaught TypeError: TextField is not a constructor jspdf
body: <p>Getting this error when i am trying to integrate the input fields inside PDF. Its working in jspdf examples i.e <a href="http://raw.githack.com/MrRio/jsPDF/master" rel="nofollow noreferrer">http://raw.githack.com/MrRio/jsPDF/master</a></p>
  <p>You have to select the AcroForms from choose example. But then i try to integrate it its not working through error on console i.e <strong>Uncaught TypeError: TextField is not a constructor</strong></p>
  <p>Below are my code</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
      &lt;meta charset=&quot;utf-8&quot;&gt;
      &lt;title&gt;jsPDF - AcroForm&lt;/title&gt;
      &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
      &lt;meta name=&quot;description&quot; content=&quot;&quot;&gt;
      &lt;meta name=&quot;author&quot; content=&quot;&quot;&gt;
      &lt;!-- Latest compiled and minified CSS --&gt;
      &lt;link rel=&quot;stylesheet&quot; href=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css&quot;&gt;
  &lt;/head&gt;
      &lt;body&gt;
          &lt;div class=&quot;container&quot;&gt;
              Test PDF &lt;button onclick=&quot;generate()&quot;&gt;GENERATE PDF &lt;/button&gt;
          &lt;/div&gt; &lt;!-- /container --&gt;
          &lt;!-- Scripts down here --&gt;
          &lt;script   src=&quot;http://raw.githack.com/MrRio/jsPDF/master/examples/js/jquery/jquery-1.7.1.min.js&quot;&gt;&lt;/script&gt;
          &lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.0.272/jspdf.debug.js&quot; &gt;&lt;/script&gt;
          
          &lt;script type=&quot;text/javascript&quot;&gt;
             function generate()
             {
              console.log('Inside generate');
              const doc = new jsPDF('p', 'mm', 'a4');
              var TextField = jsPDF.AcroForm; 
              doc.text(&quot;TextField:&quot;, 10, 145);
              var textField = new TextField();
              textField.Rect = [50, 140, 30, 10];
              textField.multiline = true;
              textField.value =
                &quot;The quick brown fox ate the lazy mouse The quick brown fox ate the lazy mouse The quick brown fox ate the lazy mouse&quot;; //
              textField.fieldName = &quot;TestTextBox&quot;;
              doc.addField(textField);
              
               doc.save('test.pdf');   
              /* global jsPDF */
             }
          &lt;/script&gt;
          &lt;!-- Code editor --&gt;
  
          &lt;script src=&quot;http://raw.githack.com/MrRio/jsPDF/master/examples/js/ace.js&quot; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;
  
          &lt;!-- Scripts in development mode --&gt;
          &lt;script src=&quot;http://raw.githack.com/MrRio/jsPDF/master/examples/js/pdfobject.min.js&quot; &gt;&lt;/script&gt;
          &lt;script src=&quot;http://raw.githack.com/MrRio/jsPDF/master/examples/js/editor.js&quot; &gt;&lt;/script&gt;
          &lt;script src=&quot;acroform.js&quot; &gt;&lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>