Add(Int32, Func<PdfPage, PdfAnnotation>) Method

Definition

Assembly Broadside.Viewer.dll

Adds an annotation to a loaded page through the annotation API (for example layer.Add(0, page => page.AddSquareAnnotation(rect, options))), redraws its area and selects it.

public AnnotationTarget? Add(int pageIndex, Func<PdfPage, PdfAnnotation> create)

Parameters

pageIndex
Int32

The zero-based page.

create
Func<PdfPage, PdfAnnotation>

Creates the annotation on the page it is given.

Returns

Nullable<AnnotationTarget>
The new annotation, or null when it does not take part (a popup, or hidden).

Remarks

ISO 32000-2 §12.5; spec #33 viewer capability 6.