Method Add

Namespace
SoftZenPdf
Assembly
SoftZenPdf.dll

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

Adds a top-level bookmark.

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

Parameters

title string

The text shown in the bookmarks pane; any Unicode text.

page PdfPage

The page to jump to; it must belong to this document.

top double?

The y coordinate to scroll to; null with left also null shows the whole page.

left double?

The x coordinate to scroll to; null keeps the current horizontal position.

Returns

PdfOutlineItem

The new bookmark, to which child bookmarks can be added.

Exceptions

ArgumentException

page belongs to a different document.