getDataProviderForAnnotation

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.