Problems with Icon Rendering on Folder-Level Javascripts in Acrobat DC
My folder-level javascripts place icons on the toolbar using an iconstream. These exact scripts have worked in every version of Acrobat and Reader I have used for several years on both PC and Mac platforms.
In Acrobat DC, the icons behave erratically, sometimes rendering appropriately and sometimes only showing the red Lego-like shape icons rather than the true icon.
The scripts still function properly when invoked by clicking the Lego-like shape icons, but the lack of the scripts' appropriate icons decreases their effectiveness.
I have removed the folder-level scripts, restarted the system and Acrobat and then re-installed the scripts with restarts and still no reliable function.
I have experienced the same behavior on Windows 10 (32 bit system) and Windows 10 (64 bit system) running Acrbat Pro DC (current version 2017.009.20044).
Hi,
Thanks for confirming that the issue is now solved for you.
Let us know for further concerns here.
Thanks
Ayush
-
Tobias Wantzen commented
Yes, my icons are based on 20x20. I’ll give this a try – thanks Robert for puzzling that out!
I know, that this is not the exact right place to ask such a question, but: From where do I get the information, that it’s now a 17x17px stream? And is it 20x20 up to Acrobat X and from DC on 17x17, so that I have to code a version detection for Acrobat and provide two icons inside my script?
The help is not quite helpful: https://help.adobe.com/en_US/acrobat/acrobat_dc_sdk/2015/HTMLHelp/#t=Acro12_MasterBook%2FJS_API_AcroJS%2FIcon_Stream.htm&rhsearch=icon&rhhlterm=icon&rhsyns=%20
And I searched the web without relevant success (there is an unanswered question of »Rob« in the forums – is this you, Robert?).
Paramjeet, thank you for you attention on this topic! You could find my script here, if this is still relevant:
http://wantzen.com/blog/?smd_process_download=1&download_id=769Thanks
Tobias -
Robert Hoisington commented
I discovered that it was my own error -- I had failed to re-create the iconstream using a 17x17px icon and was still using an old 20x20px iconstream.
After creating the new iconstream using the proper size icon, it worked just fine.
Thank you Paramjeet for following up with this thread.
Tobias, I am not sure this is the same problem you have, but if so, I hope this might help your issue.
-
Paramjeet Yadav commented
Hi,
Really sorry for the issue you’re facing. Could you please share sample folder-level javascript for which you’re facing this issue? This would help us in reproducing and investigating this issue.
Thanks,
Paramjeet Yadav -
Tobias Wantzen commented
I encounter the exact same problems on MacOS X 10.10 to 10.12 with Acrobat DC. Furthermore the display quality of my icons is very poor (see here: https://forums.adobe.com/message/9529253#9529253) Couldn't there be another, better way to integrate high quality icons? See my post:
https://acrobat.uservoice.com/forums/590923-acrobat-for-windows-and-mac/suggestions/32224231-scripting-high-quality-icons-svg