Disable Rendered Annotation Types

The renderAnnotationTypes property in Document controls which annotations should be visible.

This is a bitmask of the Annotation.Kind type.

To enable all annotations except audio, image, and video annotations, you can set the following:

var annotationTypes = Annotation.Kind.all
document.renderAnnotationTypes = annotationTypes
document.renderAnnotationTypes = PSPDFAnnotationTypeAll & ~(PSPDFAnnotationTypeScreen|PSPDFAnnotationTypeRichMedia|PSPDFAnnotationTypeSound|PSPDFAnnotationTypeStamp);

ℹ️ Note: Images are rendered as stamps, but there is no simple way to differentiate between a text stamp (e.g. Approved) and an image stamp.