PeachDrawing.PDF.PdfComposer

PdfComposer.AddNamedDestination(string, int, double) Method

Names a place in the document, so links (AddDestinationLink(Rect, string, IReadOnlyList<PaintPoint>)) and readers can jump to it. The reader scrolls to put the place at the top of the window, at the width of the page.

public void AddNamedDestination(string name, int pageIndex, double topPoints);

Parameters

name System.String

the destination’s name; naming one twice keeps the last

pageIndex System.Int32

the zero-based index of the page the place is on

topPoints System.Double

how far below the top edge of that page the place is, in points

Exceptions

System.ArgumentOutOfRangeException
pageIndex is not a page of the document