Interface IAnnotationFactory

Namespace: PSPDFKit.Api.Annotation
Assembly: Api.dll
Syntax
public interface IAnnotationFactory

Methods

| Edit this page View Source

CreateAnnotation(JObject)

Declaration
IAnnotation CreateAnnotation(JObject json)
Parameters
Type Name Description
JObject json
Returns
Type Description
IAnnotation
| Edit this page View Source

CreateAnnotation<TAnnotationType>()

Creates annotation.

Declaration
TAnnotationType CreateAnnotation<TAnnotationType>() where TAnnotationType : class, IAnnotation
Returns
Type Description
TAnnotationType

Annotation object of requested type.

Type Parameters
Name Description
TAnnotationType

Type of annotation to be created.

Exceptions
Type Condition
PSPDFKitInvalidTypeException

Thrown when creation of unsupported annotation type is requested.