How to duplicate/copy button icons on multiple pages

New Here ,
Nov 02, 2017

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.

TOPICS
Acrobat SDK and JavaScript

Views

312

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

How to duplicate/copy button icons on multiple pages

New Here ,
Nov 02, 2017

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.

TOPICS
Acrobat SDK and JavaScript

Views

313

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Nov 02, 2017 0
try67 LATEST
Most Valuable Participant ,
Nov 04, 2017

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 04, 2017 1