PeachDrawing.PDF.PdfPageSource

PdfPageSource.GetAnnotations(int, double) Method

The annotations of a page that are neither links nor form fields (highlights, notes, stamps, drawings...) and have an appearance, ready to add to a page of a document with AddAnnotation(PdfComposerPage, PdfAnnotationDefinition). Each is drawn by the appearance stream it had in the file. An annotation with no appearance stream, one marked hidden, and pop-up windows have no definition here.

public System.Collections.Generic.IReadOnlyList<PeachDrawing.PDF.PdfAnnotationDefinition> GetAnnotations(int pageIndex, double pixelsPerPoint=1.0);

Parameters

pageIndex System.Int32

the zero-based page number

pixelsPerPoint System.Double

the layout units per point of the canvas the appearances are drawn at

Returns

System.Collections.Generic.IReadOnlyList<PdfAnnotationDefinition>
the annotations, with positions in points from the top-left corner of the page as it is shown