Enum AnnotationOverlayRenderStrategy.Strategy
-
- All Implemented Interfaces:
public enum AnnotationOverlayRenderStrategy.Strategy
Enum with possible annotation overlay rendering strategies.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description 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.
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.
-
Method Summary
Modifier and Type Method Description static Array<AnnotationOverlayRenderStrategy.Strategy>
values()
Returns an array containing the constants of this enum type, in the order they're declared. static AnnotationOverlayRenderStrategy.Strategy
valueOf(String name)
Returns the enum constant of this type with the specified name. -
-
Method Detail
-
values
static Array<AnnotationOverlayRenderStrategy.Strategy> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static AnnotationOverlayRenderStrategy.Strategy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
- Returns:
the enum constant with the specified name
-
-
-
-