Method Add

Namespace
SoftZenPdf
Assembly
SoftZenPdf.dll

Add(string, PdfPage, double?, double?)

Adds a child bookmark under this one.

public PdfOutlineItem Add(string title, PdfPage page, double? top = null, double? left = null)

Parameters

title string

The text shown in the bookmarks pane.

page PdfPage

The page to jump to; it must belong to the same document.

top double?

The y coordinate to scroll to, or null.

left double?

The x coordinate to scroll to, or null.

Returns

PdfOutlineItem

The new child bookmark.

Exceptions

ArgumentException

page belongs to a different document.