Disable adding Comments to PdfFreeTextAnnotations

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

Disable adding Comments to PdfFreeTextAnnotations

Post by IntegraMike »

I'm looking for a clean way to disable adding comments to PdfFreeTextAnnotations. I want to be able to open an annotation's comments via double click, but currently this also allows me to open them for PdfFreeTextAnnotations. As far as I know FreeText annotations are not supposed to support commenting in PDFs and we have some concerns about document corruption.

Is there something I can override to get this behavior? Dealing with the Double Click event is giving me only limited success as the comment is created before I get into the event handler.

Thanks!
IntegraMike
Posts: 56
Joined: Mon Dec 02, 2019 11:19 pm

Re: Disable adding Comments to PdfFreeTextAnnotations

Post by IntegraMike »

I was able to resolve this by checking the annotation type in the factory and returning null if it was a PdfFreeTextAnnotation. This might be something to consider adding to your demo app.
Post Reply