RavishaHesh / PDFJsAnnotations

Wrapper for PDF JS to add annotations
MIT License
322 stars 98 forks source link

How to Insert text from drop down list #38

Closed ghost closed 2 years ago

ghost commented 2 years ago

It's a great tool. Does any know how to insert a text from a drop-down list? Basically, in the toolbar, I would like to have a list of items and on click write the text in the cursor position or to the text box.

Any help or code snippet would be appreciated.

RavishaHesh commented 2 years ago

I just pushed an update pass default text to enableAddText function or change existing text using new setDefaultTextForTextBox function. you can use those method to set default text when dropdown value get changed.

ghost commented 2 years ago

Thank you for the quick update.

RavishaHesh commented 2 years ago

Closing due to inactivity. Feel free to open again if you have any further questions