get Data Provider For Annotation
open fun getDataProviderForAnnotation(@NonNull annotation: Annotation, @NonNull options: EnumSet<AppearanceStreamGenerator.AppearanceStreamGenerationOptions>): DataProvider
Called when the appearance stream data for the given annotation is needed.
The data represented by the DataProvider must be a validly formed PDF. The contents of the first page of that PDF file will be embedded in the annotation
as its appearance stream.
Return
DataProvider representing a validly formed PDF or null
to use annotation's default AP stream.
Parameters
annotation
Annotation for which the AP stream is being generated.
options
Enum set of AP stream generation options.