public static final enum


extends Enum<E extends Enum<E>>
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.pspdfkit.ui.rendering.AnnotationOverlayRenderStrategy.Strategy

Class Overview

Enum with possible annotation overlay rendering strategies.


Enum Values
AnnotationOverlayRenderStrategy.Strategy  AP_STREAM_RENDERING  Display rendered PDF appearance for annotation (i.e. 
AnnotationOverlayRenderStrategy.Strategy  PLATFORM_RENDERING  Display annotation in platform view (if available). 
Public Methods
static AnnotationOverlayRenderStrategy.Strategy valueOf(String name)
final static Strategy[] values()
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final AnnotationOverlayRenderStrategy.Strategy AP_STREAM_RENDERING

Display rendered PDF appearance for annotation (i.e. its AP stream) in overlay.

Note that some annotation types (sound) are always displayed in overlay.

Annotations rendered using the AP stream are rendered as specified in the PDF document and are therefore displayed the exact same way on all PDF spec compliant PDF readers. Since documents can store arbitrary appearances for annotations, this means that PSPDFKit has to switch to non-AP stream rendering upon editing an annotation. This can lead to slightly slower annotation selection speeds than using PLATFORM_RENDERING in trade-off for higher rendering accuracy.

public static final AnnotationOverlayRenderStrategy.Strategy PLATFORM_RENDERING

Display annotation in platform view (if available).

Note that certain annotation types are always displayed as if the AP_STREAM_RENDERING strategy was set because there's no platform view needed to display them. These include markup annotations, redaction and image/stamp annotations.

Public Methods

public static AnnotationOverlayRenderStrategy.Strategy valueOf (String name)

public static final Strategy[] values ()