What version of Acrobat/Reader?
Have you tried the run the supplied JS file?
The author has the text for the icon images in the file and converts the text to an icon image. No importing.
I tried with text as well. It doesn't work. actually it is the same, I just save some steps with encoding and decoding in order to get the same picture. It is no probem with importing into document, it is problem to put this image into the dialog.
Or can I put the image to the dialog somehow else?
There's a bug in that version of Acrobat (and maybe Reader as well). It will not show images in a dialog object.
It is bad
Ok, I've got a new idea. For this I need to get opened an other pdf with images using JS. Can I set the size of the windows for a new document, i.e. are there parameters in the following function, like width , height and that new Acrobat window should be not active(is not placed over the origin(main) document)? I could not find it in documents like JSGuide and API.
cPath: shortPath + "iconToHex.pdf",