title: Change font programmatically in Acrobat Pro 9.1
body: <p>I have a large PDF file that uses a number of fonts. I have to export it to another application that only recognizes Arial or Times New Roman fonts. Is it possible to do this in Javascript? I tried this with no luck:</p>
  
  <pre><code>/* Changes font to Arial */
  var ckWord, numWords;
  for (var i = 0; i &lt; this.numPages; i++)
  {
      numWords = this.getPageNumWords(i);
      for (var j = 0; j &lt; numWords; j++) {
          ckWord = (this.getPageNthWord(i,j))
           if (ckWord.font != "Arial") {
                ckWord.font = "Arial";
  
              }
          }
  }
  </code></pre>