Hi! I hope someone can help me with the icons object.
When I use the following code (document level) in a PDF file I created (with Acrobat 8)
for (var i in e)
I get 8 for the length and the error message
this.icons has no properties
This happens for this.icons.name, ..... this.icons.name
Although there should be eigth icons I can't get any name.
Furthermore if I use app.alert(this.icons) I get the following string ",,,,,,,". There is a simple way to remove this corrupted (I think) object?
Sorry for my bad english
Thank you, linopasc
Did you attempt to add document icons in the first place? If so, what method did you use? Can you post the file somewhere so we can take a look at the file?
Just yesterday I used importIcon() to add some icons to a new created file and I used these icons to set the icon associated with buttons (buttonSetIcon). All was correctly working. But this morning the script does not work. In place of the two first icons there are two commas (???).
Acrobat has a document icon related bug where it removes all icons when a Save As operation is performed. The workaround is to place them in buttons as soon as you import them. These buttons can be hidden and thier icons can be retrieved using the buttonGetIcon method.