This content has been marked as final.
Show 9 replies
-
1. Re: How to decide an annot is visiable?
(Leonard_Rosenthol) Jan 7, 2009 3:36 AM (in response to ChromeUser)If the Annot has a valid rectangle inside the CropBox of the page AND the flags for the Annot don't mark it as invisible AND it's not part of a non-visible OCG, then it will be displayed. -
2. Re: How to decide an annot is visiable?
ChromeUser Jan 7, 2009 5:39 PM (in response to ChromeUser)But if the annotation has been scrolled out the current PageView, it can not be displayed.
I tried using AVPageViewGetAnnotRect to decide the annotation visiablity but i found that it can not work.
So any idea?
Thanks. -
3. Re: How to decide an annot is visiable?
(Leonard_Rosenthol) Jan 7, 2009 6:22 PM (in response to ChromeUser)Oh, you meant that type of visible...
yes, you can get its rect and compare if its in view.
Why do you need to know that? -
4. Re: How to decide an annot is visiable?
ChromeUser Jan 7, 2009 9:39 PM (in response to ChromeUser)The rect get by AVPageViewGetAnnotRect() is not affected by scrolling,then i can not decide visiablity through this method.
I have not found any other methods can be used to decide the visiablity of annotation.
I need to know this so to draw a rect on the annotation.if it cann't be seen i do not draw the rect. -
5. Re: How to decide an annot is visiable?
(Leonard_Rosenthol) Jan 8, 2009 3:34 AM (in response to ChromeUser)Correct, the rectangle is static. But you can get the current page viewing area, the scroll position, etc from other APIs and then compare.
That's an interesting requirement. Why not just replace the annotation handlers and change the drawing proc? -
6. Re: How to decide an annot is visiable?
ChromeUser Jan 8, 2009 6:07 AM (in response to ChromeUser)>That's an interesting requirement. Why not just replace the annotation handlers and change the drawing proc?
I don't understand what you mean.
How replacing the annotation handlers make me accomplish this?
Thanks,
Jasper. -
7. Re: How to decide an annot is visiable?
(Leonard_Rosenthol) Jan 8, 2009 6:38 AM (in response to ChromeUser)You can "subclass" the annotation handlers provided by Acrobat and then override the drawing method to do whatever you want... -
8. Re: How to decide an annot is visiable?
shreedhark Aug 23, 2010 11:39 AM (in response to ChromeUser)How exactly can a annotation be subclassed. Is there any sample?
-
9. Re: How to decide an annot is visiable?
lrosenth Aug 23, 2010 2:01 PM (in response to shreedhark)No samples, no.
You would need to get the existing handler and then either "head patch" or "tail patch" the various methods.


