Visitar URL original
Support interactive icon selection for push button widgets by lunarcloud · Pull Request #22349 · mozilla/pdf.js · GitHub
Skip to content

Support interactive icon selection for push button widgets - #22349

Open
lunarcloud wants to merge 1 commit into
mozilla:masterfrom
lunarcloud:pushbutton-icon-select
Open

lunarcloud wants to merge 1 commit into
mozilla:masterfrom
lunarcloud:pushbutton-icon-select

Conversation

@lunarcloud

Copy link
Copy Markdown

Acrobat's 'Select Icon' field-properties feature binds a push button's action to a buttonImportIcon() JavaScript call, which isn't implemented by pdf.js (or any other PDF viewer). Such buttons are commonly used as an image placeholder, e.g. a character portrait in a fillable TTRPG character sheet, so let the user click the button to pick a replacement image, preview it, and embed it as the button's /MK/I icon and /AP/N appearance on save.

Fixes #22345

Acrobat's 'Select Icon' field-properties feature binds a push button's
action to a `buttonImportIcon()` JavaScript call, which isn't
implemented by pdf.js (or any other PDF viewer). Such buttons are
commonly used as an image placeholder, e.g. a character portrait in a
fillable TTRPG character sheet, so let the user click the button to
pick a replacement image, preview it, and embed it as the button's
`/MK/I` icon and `/AP/N` appearance on save.

Fixes mozilla#22345

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Support interactively setting pushbutton icon images ( /MK/I ) aka character sheet portraits

2 participants