Free Support Forum - aspose.com

Can we show/hide pdf comments?

We are data filling and concatenating PDF templates that have pre-built fields and comments and annotations. Some of our users do not want to see the comments and annotations. Is there a way from the API to control the default "Show/Hide Comments" functionality in Acrobat?

It is the menu equivalent of "Ctrl-8 / Shift-Ctrl-8". When you manually use it in Acrobat, you get a message that says "Comments are hidden because a filter is active in the Show Menu"

I have searched the documentation and forum, but have not seen this question addressed.

Thanks

Hi Richard,

You can use ModifyAnnotations method and specify the Open property of the Annotation object as false for a particular type of annotations. Please try this method at your end and see if it works for you.

If you still find any problems then please share the PDF file with us, so we could test the issue at our end.

We’re sorry for the inconvenience.
Regards,