These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Is access to metadata via "this.info" broken with 8.1.2 update?

ChrisFreeman
Registered: May 6 2007
Posts: 19
Answered

Executing the following code segment to dump metadata in the console window seems to be broken since the upgrade to 8.1.2:

for (var i in this.info) console.println(i + ": "+ this.info[i]);

yelds the error message:

"" has invalid __iterator__ value ""
1:Console:Exec

Reinstalling Acrobat 8.1.0 Professional and rerunning this code segment works properly.

.
 
Has anyone else seen this error?

My Product Information:
Acrobat Pro 8.1.2, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes, it is broken. Badd Adobe!!

A work around is to convert the object in question into a generic object.

var genericInfo = eval(this.info.toSource());

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script