Hi,
how can I set the content property of a highlight annotation created by HighlightSelection commando?
Setting the content afterwards by JavaScript is possible, but how do I identify the right annotation? (getAnnot or something like that?)
A related issue: I call SetProperty("Commenting.CopySelTextToHilightPopup", 1, 0).
It works with the highlight tool, but when I create a comment by HighlightSelection the selected text does not appear in the associated sticky note box. Why?
HighlightSelection
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: HighlightSelection
The Viewer ActiveX does not currently have functionality to modify existing comments in a PDF.
For now the only way to do this is to use JS. We are working new functionality which will allow the addition/editing of comments in a PDF document using the ActiveX methods.
For now the only way to do this is to use JS. We are working new functionality which will allow the addition/editing of comments in a PDF document using the ActiveX methods.
This problem will be fixed in the new build due later this week if all goes to plan - thanks for report.I call SetProperty("Commenting.CopySelTextToHilightPopup", 1, 0).
It works with the highlight tool, but when I create a comment by HighlightSelection the selected text does not appear in the associated sticky note box.
-
- User
- Posts: 22
- Joined: Thu Apr 02, 2009 9:55 am
Re: HighlightSelection
Hi Corwin,
Come on, it must work somehow, it works with your context menu (Open comment).
How exactly? My problem is identifying the right comment. When I right-click it, what should I pass to JS, the mouse coordinates? And then?For now the only way to do this is to use JS.
Come on, it must work somehow, it works with your context menu (Open comment).
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: HighlightSelection
Well, you can get rects for all annots on the page and check what rect contains mouse coordinates.
-
- User
- Posts: 22
- Joined: Thu Apr 02, 2009 9:55 am
Re: HighlightSelection
Any idea what the status of the development is? Can I count on the new build in the next couple of days?This problem will be fixed in the new build due later this week if all goes to plan - thanks for report.
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: HighlightSelection
It’s on the testing stage. So I hope that tomorrow new build will be available for download.