Copy link to clipboard
Copied
Hi,
How to highlight with selected text using javascript in acrobat.
Thanks.
Copy link to clipboard
Copied
How want you execute the script?
Copy link to clipboard
Copied
It may toolbutton or menuitem or whatever.
Copy link to clipboard
Copied
The user can use the highlight tool.
Copy link to clipboard
Copied
How is the text selected?
By user or by JavaScript?
Copy link to clipboard
Copied
User can select the text and will run the script. Then it should be highlighted.
Note: It is working fine in Adobe Reader but not working in Acrobat.
Copy link to clipboard
Copied
What is not working in Acrobat?
Copy link to clipboard
Copied
User selected text should be highlighted in acrobat using script.
Copy link to clipboard
Copied
What does you use in Reader?
Copy link to clipboard
Copied
Not possible. JS has no access to the current text selection.
Copy link to clipboard
Copied
For Adobe Reader "app.execMenuItem("Annots:TextEditMenu:HighlightSel")" using this. And it is not working in Acrobat.
Copy link to clipboard
Copied
What versions of Acrobat Reader and Adobe Acrobat does you use?
Copy link to clipboard
Copied
Adobe Reader X1 and Acrobat Pro DC.
Copy link to clipboard
Copied
The menu item is not more available in version DC.
Copy link to clipboard
Copied
Any other option in DC?
Copy link to clipboard
Copied
I don't know.
Copy link to clipboard
Copied
If it is the user who has to select the text, wouldn't it be easier and faster if he then simply right-clicked on the selected text?
Copy link to clipboard
Copied
We need this via scripting, and we have some other process after highlighting.
So user need to select text only.