Page 1 of 1

Hide hidden annotations in Edit mode

Posted: Wed May 06, 2020 3:08 am
by IntegraMike
Is there a way to stop the PdfAnnotationTool from showing all annotations while in Edit mode? I'm looking to have edit mode only display annotations that are not hidden, but I don't see a property I can set, etc.

Thanks in advance!

Re: Hide hidden annotations in Edit mode

Posted: Wed May 06, 2020 6:34 pm
by Alex
Hello Mike,

For solving your task you need to:
  • Create MyPdfAnnotationTool class, which is derived from PdfAnnotationTool class.
  • Override logic of GetAnnotationVisibility method in MyPdfAnnotationTool class.
  • Use MyPdfAnnotationTool class instead of PdfAnnotationTool class.
You can see topic with similar problem here: https://www.vintasoft.com/forums/viewto ... =20&t=5425

Best regards, Alexander

Re: Hide hidden annotations in Edit mode

Posted: Wed May 06, 2020 7:03 pm
by IntegraMike
Thanks, that got me what I needed!