Hide hidden annotations in Edit mode

Questions, comments and suggestions concerning VintaSoft PDF .NET Plug-in.

Moderator: Alex

Post Reply
IntegraMike
Posts: 56
Joined: Mon Dec 02, 2019 11:19 pm

Hide hidden annotations in Edit mode

Post 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!
Alex
Site Admin
Posts: 2313
Joined: Thu Jul 10, 2008 2:21 pm

Re: Hide hidden annotations in Edit mode

Post 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
IntegraMike
Posts: 56
Joined: Mon Dec 02, 2019 11:19 pm

Re: Hide hidden annotations in Edit mode

Post by IntegraMike »

Thanks, that got me what I needed!
Post Reply