title: Can't export fields from certain pdfs with Javascript
body: <p>I have a directory of 30 or so pdf files, and 10 of them won't export their fields to a text file for me.</p>
  
  <p>I'm using the Javascript Editor in Adobe Acrobat Pro 9 in the Batch processing portion of the program.</p>
  
  <p>The program is very simiple it looks like this:</p>
  
  <pre><code>var fname = this.documentFileName;
  this.exportAsText(true, null, fname + ".txt");
  </code></pre>
  
  <p>When I run it with the 10 files selected I should be getting a text file that has the same name as the document processed, but instead all I get is an error log that reads <code>Warning: no documents were processed</code> </p>
  
  <p>It doesn't give me any other reasons why I do not end up with an output file.</p>
  
  <p>I ran pdfinfo on a file that generated the results and a file that did not, they look pretty much the same and neither is encrypted:</p>
  
  <p>One that didn't work:</p>
  
  <pre><code>Creator:        Adobe InDesign CS4 (6.0.6)
  Producer:       Adobe PDF Library 9.0
  CreationDate:   Tue Dec  7 15:58:15 2010
  ModDate:        Mon Jun  3 12:11:12 2013
  Tagged:         no
  Pages:          5
  Encrypted:      no
  Page size:      612 x 792 pts (letter)
  File size:      405476 bytes
  Optimized:      no
  PDF version:    1.6
  </code></pre>
  
  <hr>
  
  <p>One that worked:</p>
  
  <pre><code>Creator:        Adobe InDesign CS4 (6.0.6)
  Producer:       Adobe PDF Library 9.0
  CreationDate:   Tue Dec  7 15:58:15 2010
  ModDate:        Wed Jun 12 08:44:05 2013
  Tagged:         no
  Pages:          5
  Encrypted:      no
  Page size:      612 x 792 pts (letter)
  File size:      300702 bytes
  Optimized:      no
  PDF version:    1.6
  </code></pre>
  
  <p>The only difference between them seems to be the field values.</p>