Copy link to clipboard
Copied
I need to use the same button icons throughout the PDF (around 12 button icons).
How can I copy/save/duplicate icons dynamically on different pages? I mean some icons are changing according to user choices and eventually all of them should return to the initial state - this is the case when I want these icons to be copied from some "global" storage.
Thanks a lot.
Copy link to clipboard
Copied
I need to use the same button icons throughout the PDF (around 12 button icons).
How can I copy/save/duplicate icons dynamically on different pages? I mean some icons are changing according to user choices and eventually all of them should return to the initial state - this is the case when I want these icons to be copied from some "global" storage.
Thanks a lot.
Copy link to clipboard
Copied
This is more of a JavaScript question (as well as your other one). You should use this forum for that: JavaScript
Using JS you can create an Icon object and then apply it as the icon of multiple button fields.
See the importIcon and getIcon methods of the Document object for more details.